aboutsummaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2022-01-26 18:04:09 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2022-01-26 18:04:09 +0300
commitbee6e09262a6145fc178ddc85c656da4bb83a9a9 (patch)
treeb76b91117dfe00eab2cf2d246fe92ef7ca05da49 /install
parent5014de0541201716dc4ee6f544321ac4e3d7431e (diff)
Squashed 'gitstatus/' changes from 6eb490ab..b226d8e0
b226d8e0 bug fix: don't crap out when TMPDIR is unset git-subtree-dir: gitstatus git-subtree-split: b226d8e060db82ac68f1b00c49d1fc85abdbe56e
Diffstat (limited to 'install')
-rwxr-xr-xinstall2
1 files changed, 1 insertions, 1 deletions
diff --git a/install b/install
index 6e027a3b..76f339e0 100755
--- a/install
+++ b/install
@@ -245,7 +245,7 @@ END
return 1
fi
- if [ -n "$TMPDIR" -a '(' '(' -d "$TMPDIR" -a -w "$TMPDIR" ')' -o '!' '(' -d /tmp -a -w /tmp ')' ')' ]; then
+ if [ -n "${TMPDIR-}" -a '(' '(' -d "${TMPDIR-}" -a -w "${TMPDIR-}" ')' -o '!' '(' -d /tmp -a -w /tmp ')' ')' ]; then
local tmp="$TMPDIR"
else
local tmp=/tmp