diff options
-rw-r--r-- | fb.1 | 2 | ||||
-rw-r--r-- | fb.in | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -87,7 +87,7 @@ will try to extract the ID. Display a short help message. .It Fl t Upload a tar file containing all files and directories specified on the -command line. +command line. The file name can be specified with the -n option. (don't add any extensions) .It Fl v Display the client version. .It Fl D @@ -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 |