X-Git-Url: https://feistymeow.org/gitweb/?p=feisty_meow.git;a=blobdiff_plain;f=scripts%2Fcustomize%2Ffred%2Fscripts%2Fgames%2Fzap_fallout.sh;fp=scripts%2Fcustomize%2Ffred%2Fscripts%2Fgames%2Fzap_fallout.sh;h=9a2a5c47f215b97e04b0216fd1530c1e8178ed49;hp=21e1ddf55d1593a0dfa73e9e6831a59d1f55f101;hb=de0da7f2f7958d4ba652ff2ef5c79991700141ac;hpb=a4c99c6006b3aa20b5f65f02c2d30db7e790083a diff --git a/scripts/customize/fred/scripts/games/zap_fallout.sh b/scripts/customize/fred/scripts/games/zap_fallout.sh index 21e1ddf5..9a2a5c47 100644 --- a/scripts/customize/fred/scripts/games/zap_fallout.sh +++ b/scripts/customize/fred/scripts/games/zap_fallout.sh @@ -1,12 +1,11 @@ #!/bin/bash -# windows compatible process killer for any stray processes started as -#"fallout" something. +# windows compatible process killer for any stray processes started as "fallout" something. source $FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh -procid="$( psa fallout | tail -n 1 | awk '{ print $1; }' )" - -if [ ! -z "$procid" ]; then - taskkill.exe /f /pid ${procid} -fi +for procid in $( psfind fallout ); do + if [ ! -z "$procid" ]; then + taskkill.exe /f /pid ${procid} + fi +done