From: Andre Ramnitz Date: Fri, 6 Sep 2024 01:44:45 +0000 (+0200) Subject: scripts: improve winecleaner X-Git-Tag: v0.2~92 X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;h=2b88f0e61c12a2b3b0e58b6c18fc4ba42625fb77;p=dotfiles.git scripts: improve winecleaner --- diff --git a/local/dot-local/bin/winecleaner b/local/dot-local/bin/winecleaner index 3a28176c..26f795ad 100755 --- a/local/dot-local/bin/winecleaner +++ b/local/dot-local/bin/winecleaner @@ -16,10 +16,14 @@ echo "Grepping ps for wine executables..." if [ -n "$PSOUTPUT" ]; then echo "The following processes have been found:" echo "$PSOUTPUT" - yes_or_no "Would you like to send sigkill to all processes?" && pgrep exe | xargs kill + yes_or_no "Would you like to send sigTERM to all processes?" && pgrep exe | xargs kill echo "Verifying that all processes have been cleaned..." sleep 7 PSOUTPUT="$(pgrep -l exe)" + echo "After sending sigterm to every process, these ones still remain:" + echo "$PSOUTPUT" + yes_or_no "Would you like to send sigKILL to all processes?" && pgrep exe | xargs kill -9 + echo "Verifying that all processes have been cleaned..." if [ -n "$PSOUTPUT" ]; then echo "Still some processes around. Please remove them manually..." echo "$PSOUTPUT" @@ -29,3 +33,4 @@ if [ -n "$PSOUTPUT" ]; then else echo "No wine executables found" fi +