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 authored and Minion3665 committed Feb 23, 2023
1 parent 358a9e3 commit fa0253d
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 fa0253d

Please sign in to comment.