From: Chris Koeritz Date: Sun, 29 May 2022 13:19:14 +0000 (-0400) Subject: improved zapper using psfind X-Git-Tag: 2.140.136^2~54 X-Git-Url: https://feistymeow.org/gitweb/?p=feisty_meow.git;a=commitdiff_plain;h=4e608cecceb3a118a4e22b40f25a76376e00bdef improved zapper using psfind psfind is now working pretty great, whereas the psa script is busted on windoze now. this new approach also doesn't just zap one process, but zaps every fallout process it finds. --- 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