mirror of
https://github.com/actions/runner-images.git
synced 2026-01-08 11:30:49 +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
|
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