Skip to content

Commit

Permalink
Added no url check for CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
uriel1998 committed Nov 5, 2020
1 parent 67a9358 commit 1269a05
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bookmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ fi
title="${@:2}"

if [ -z "$1" ];then
tempurl=$(yad --width=500 --center --window-icon="icon-gtk-network" --title="Choose URL" --text="Please input an URL" --entry --editable )
if [ "$GUI" == "YUP" ];then
tempurl=$(yad --width=500 --center --window-icon="icon-gtk-network" --title="Choose URL" --text="Please input an URL" --entry --editable )
else
echo "Please input an URL. "
read tempurl
fi
if [ -z "$tempurl" ];then
exit 1
else
Expand Down

0 comments on commit 1269a05

Please sign in to comment.