Merge branch 'release-2.140.136'
[feisty_meow.git] / scripts / customize / fred / scripts / games / zap_fallout.sh
index 21e1ddf55d1593a0dfa73e9e6831a59d1f55f101..9a2a5c47f215b97e04b0216fd1530c1e8178ed49 100644 (file)
@@ -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