Fixed kill mode.

This commit is contained in:
Achim D. Brucker 2018-04-02 11:35:49 +01:00
parent 2a7e94f325
commit 2412a66731
1 changed files with 1 additions and 1 deletions

View File

@ -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