Improved app cleaner guide

This commit is contained in:
Sun Knudsen 2021-01-08 14:14:59 -05:00
parent afb755960d
commit 5c29479b15
No known key found for this signature in database
GPG Key ID: 1FA767862BBD1305
2 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ if [ ${#processes[@]} -gt 0 ]; then
printf "%s\n" "Killing running processes..."
sleep 1
for process in "${processes[@]}"; do
echo $process | awk '{print $1}' | xargs kill 2>&1 | grep -v "No such process"
echo $process | awk '{print $1}' | xargs sudo kill 2>&1 | grep -v "No such process"
done
fi
fi