diff options
Diffstat (limited to 'litterbox')
| -rwxr-xr-x | litterbox | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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" |
