Skip to content

Commit

Permalink
install: only create TMPDIR if missing
Browse files Browse the repository at this point in the history
  • Loading branch information
abathur committed Aug 19, 2022
1 parent 823e101 commit 0bf52b7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/install-multi-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,9 @@ _sudo() {
fi
}


# Ensure that $TMPDIR exists if defined.
if [[ -v TMPDIR ]]; then
mkdir -m 0700 -p "$TMPDIR"
if [[ -n "${TMPDIR:-}" ]] && [[ ! -d "${TMPDIR:-}" ]]; then
mkdir -m 0700 -p "${TMPDIR:-}"
fi

readonly SCRATCH=$(mktemp -d)
Expand Down

0 comments on commit 0bf52b7

Please sign in to comment.