diff options
-rwxr-xr-x | url.sh | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -44,6 +44,13 @@ selection="$(echo "${line}" | awk -F '\t' '{print $1}')" if [ "${selection}" = "${closer}" ] then exit 0 + +# exit if nothing is selected +elif [ "${selection}" = "" ] +then + exit 0 + +# open selected URL in browser else firefox "${selection}" fi |