Skip to content

Commit

Permalink
Merge pull request #2 from abathur/tmp-slash
Browse files Browse the repository at this point in the history
install: only create $TMPDIR if missing
  • Loading branch information
edolstra authored Aug 22, 2022
2 parents 823e101 + 0bf52b7 commit 380bf60
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 380bf60

Please sign in to comment.