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"
else
echo "No wine executables found"
fi
+