This commit is contained in:
Hamilton Turner 2014-08-01 20:39:29 +00:00
commit 7bf3d045d9

View file

@ -64,9 +64,9 @@ wd_warp()
wd_add() wd_add()
{ {
if [[ $2 =~ "^\.+$" || $2 =~ "^\s*$" ]] if [[ $2 -regex-match "^\.+$" || $2 -regex-match "^\s*$" ]]
then then
wd_print_msg $RED "Illegal warp point (see README)." wd_print_msg $RED "Warp point name cannot be just dots or spaces"
elif [[ ${points[$2]} == "" ]] || $1 elif [[ ${points[$2]} == "" ]] || $1
then then
wd_remove $2 > /dev/null wd_remove $2 > /dev/null