mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-30 05:22:06 +08:00
[macOS] suppress pipefail pgrep exit code (#3208)
This commit is contained in:
committed by
GitHub
parent
a06f07dfb4
commit
83f2d79254
@@ -44,7 +44,7 @@ do
|
||||
done
|
||||
|
||||
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"
|
||||
sudo launchctl remove com.microsoft.autoupdate.helper
|
||||
|
||||
|
||||
Reference in New Issue
Block a user