[macOS] suppress pipefail pgrep exit code (#3208)
This commit is contained in:
@@ -44,7 +44,7 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
echo "kill autoupdate process"
|
echo "kill autoupdate process"
|
||||||
ps -ef | grep [M]icrosoft | awk '{print $2}' | sudo xargs kill -9
|
pgrep [M]icrosoft | sudo xargs kill -9 || true
|
||||||
echo "remove autupdate service"
|
echo "remove autupdate service"
|
||||||
sudo launchctl remove com.microsoft.autoupdate.helper
|
sudo launchctl remove com.microsoft.autoupdate.helper
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user