summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@server-speed.net>2011-06-03 23:12:05 +0200
committerFlorian Pritz <bluewind@server-speed.net>2011-06-03 23:12:05 +0200
commit1866737e3440dd4f37dc357ab7645d8f1956aea5 (patch)
tree52f65156bb99530e64348a12b3a4a6facddfc3c7
parentb4a57cc558fe07b306acdc80a9fe8928100aba32 (diff)
print an error if -t is used when operating on stdin
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
-rw-r--r--fb.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/fb.in b/fb.in
index d49fc22..7d3067b 100644
--- a/fb.in
+++ b/fb.in
@@ -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