From 2ec145e0e5e2b7c15b0dd549962ca84515084622 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 26 Mar 2012 21:09:28 -0400 Subject: Do nothing if the URI is empty --- examples/data/scripts/follow.sh | 2 ++ 1 file changed, 2 insertions(+) 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" -- cgit v1.2.3