summaryrefslogtreecommitdiffstats
path: root/fb.in
diff options
context:
space:
mode:
Diffstat (limited to 'fb.in')
-rw-r--r--fb.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/fb.in b/fb.in
index d1f80bb..133e3d7 100644
--- a/fb.in
+++ b/fb.in
@@ -92,9 +92,11 @@ do_upload() {
sed '$d' $TMPFILE >&2
URL=`tail -1 $TMPFILE`"$EXTENSION"
echo $URL
- CLIPBOARD="$CLIPBOARD $URL"
- touch "$FBHIST"
- echo "$URL :: $basefilename :: `date +%s` :: `stat -c %s -- "$file"`" >> "$FBHIST"
+ if echo $URL | grep -qE "^https?://"; then
+ CLIPBOARD="$CLIPBOARD $URL"
+ touch "$FBHIST"
+ echo "$URL :: $basefilename :: `date +%s` :: `stat -c %s -- "$file"`" >> "$FBHIST"
+ fi
}
read_stdin() {