aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@gmail.com>2012-03-26 21:09:28 -0400
committerBen Boeckel <mathstuf@gmail.com>2012-03-26 21:09:28 -0400
commit2ec145e0e5e2b7c15b0dd549962ca84515084622 (patch)
tree152b125807cd6995fd7bba31006912a383d9d2cc
parente387bb4f79c126066193c1db5173faab82cd531a (diff)
Do nothing if the URI is empty
-rwxr-xr-xexamples/data/scripts/follow.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/data/scripts/follow.sh b/examples/data/scripts/follow.sh
index 7c2710a..5ed0fbb 100755
--- a/examples/data/scripts/follow.sh
+++ b/examples/data/scripts/follow.sh
@@ -22,6 +22,8 @@ case "$result" in
printf 'set mode=\nevent KEYCMD_CLEAR\n' > "$UZBL_FIFO"
+ [ -z "$uri" ] && exit
+
case "$uriaction" in
set)
printf 'uri '"$uri"'\n' | sed -e 's/@/\\@/' > "$UZBL_FIFO"