aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlitterbox4
1 files changed, 2 insertions, 2 deletions
diff --git a/litterbox b/litterbox
index 499fe9d..ad730ab 100755
--- a/litterbox
+++ b/litterbox
@@ -104,7 +104,7 @@ compress_file() {
basefile="$( basename "$FILE" )"
# TODO: create a random tmp dir, don't use /tmp!
- TMPFILE="${TMP:-/tmp}/$basefile$ext"
+ TMPFILE="$TMP/$basefile$ext"
rm -f "$TMPFILE"
if [ "$ZIP" = "1" ]; then
zip -qr "$TMPFILE" "$FILE"
@@ -142,7 +142,7 @@ upload_file() {
if [ "$use_compression" = 1 ]; then
# can't easily zip stdin, write it to a file
if [ "$FILE" = "-" ]; then
- FILE="${TMP:-/tmp}/$SELF.stdin"
+ FILE="$TMP/$SELF.stdin"
cat > "$FILE"
if [ "$?" != 0 ]; then
rm -f "$FILE"