diff options
author | Florian Pritz <bluewind@xinu.at> | 2014-02-19 22:41:22 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2014-02-19 22:41:22 +0100 |
commit | 26d11433f13e69e71c431d021fc1a32d902d2247 (patch) | |
tree | 01770b702524acca6cdf34e59852ea2514cf3a24 /fb.in | |
parent | 954fbf673152640b035d02b589534ab522b5856e (diff) |
Support combining -n and -t to set the tarball namev1.3.2
This does change the default from upload to stdin, but I don't care.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'fb.in')
-rw-r--r-- | fb.in | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -143,13 +143,13 @@ is_url() { do_tar_upload() { if [ "$compress" = "1" ]; then - file="$tmpdir/upload.tar.gz" + file="$tmpdir/$filename.tar.gz" tar -cf - -- "$@" | gzip -n -c > "$file" || return 1 elif [ "$compress" = "2" ]; then - file="$tmpdir/upload.tar.xz" + file="$tmpdir/$filename.tar.xz" tar -cf - -- "$@" | xz -c > "$file" || return 1 else - file="$tmpdir/upload.tar" + file="$tmpdir/$filename.tar" tar -cf "$file" -- "$@" || return 1 fi compress=0 |