diff --git a/scripts/global_update_monitor.sh b/scripts/global_update_monitor.sh index 6d073a1..bceb2e8 100755 --- a/scripts/global_update_monitor.sh +++ b/scripts/global_update_monitor.sh @@ -33,7 +33,7 @@ if ps u -C global_update.sh > /dev/null; then echo "* $NUM instances of global_update.sh still running (WARNING)" PIDS=`ps u -C global_update.sh | tail -n +2 | awk '{print $2}' | xargs` echo " Running PIDs: $PIDS" - if [[ $KILL=="YES" ]];then + if [ "$KILL=="YES" ];then echo " KILL mode enabled, killing running global_update.sh instances" echo " (executing pkill -P $PIDS)" pkill -P $PIDS