From 1866737e3440dd4f37dc357ab7645d8f1956aea5 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 3 Jun 2011 23:12:05 +0200 Subject: print an error if -t is used when operating on stdin Signed-off-by: Florian Pritz --- fb.in | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3-24-g4f1b