Fixed kill mode.
This commit is contained in:
parent
2a7e94f325
commit
2412a66731
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue