Skip to content

Commit 67a9358

Browse files
committed
Added check for no url with -g option
1 parent d39331b commit 67a9358

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

bookmark.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ fi
2525

2626
title="${@:2}"
2727

28+
if [ -z "$1" ];then
29+
tempurl=$(yad --width=500 --center --window-icon="icon-gtk-network" --title="Choose URL" --text="Please input an URL" --entry --editable )
30+
if [ -z "$tempurl" ];then
31+
exit 1
32+
else
33+
url="$tempurl"
34+
fi
35+
fi
36+
2837
#Could this be causing the problem since it's in a subshell?
2938
#export SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
3039
export SCRIPT_DIR="$HOME/.newsboat"

0 commit comments

Comments
 (0)