From 4e608cecceb3a118a4e22b40f25a76376e00bdef Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sun, 29 May 2022 09:19:14 -0400 Subject: [PATCH] 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. --- scripts/customize/fred/scripts/games/zap_fallout.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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 -- 2.34.1