diff options
author | Florian Pritz <bluewind@server-speed.net> | 2011-06-03 23:12:05 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@server-speed.net> | 2011-06-03 23:12:05 +0200 |
commit | 1866737e3440dd4f37dc357ab7645d8f1956aea5 (patch) | |
tree | 52f65156bb99530e64348a12b3a4a6facddfc3c7 /fb.in | |
parent | b4a57cc558fe07b306acdc80a9fe8928100aba32 (diff) |
print an error if -t is used when operating on stdin
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
Diffstat (limited to 'fb.in')
-rw-r--r-- | fb.in | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -168,6 +168,10 @@ if [ "$DELETE" ] || [ "$GET" ]; then fi done elif [ $# -eq 0 ]; then + if [ "$TAR" ]; then + echo "Error: -t is not supported when operating on stdin" >&2 + exit 1 + fi read_stdin "$TMPDIR/stdin" do_upload "$TMPDIR/stdin" else |