diff --git a/gnscli.sh b/gnscli.sh index c4eb86f..e6482fa 100755 --- a/gnscli.sh +++ b/gnscli.sh @@ -2168,7 +2168,7 @@ function checkfor() { # checkfor name [pkg_name] rv=$? if [[ $rv -ne 0 && $what == "gdate" ]]; then date --version 2>/dev/null | grep -q GNU 2>/dev/null - if [[ $? -eq 0 ]] then + if [[ $? -eq 0 ]]; then GDATE=$(which date) rv=0 fi