mirror of
https://github.com/coder/coder.git
synced 2026-09-21 12:44:32 +08:00
ci: conditionally disable spotlight indexing on nightly gauntlet (#19142)
Same as #19124
This commit is contained in:
@@ -37,6 +37,11 @@ jobs:
|
||||
- name: Disable Spotlight Indexing
|
||||
if: runner.os == 'macOS'
|
||||
run: |
|
||||
enabled=$(sudo mdutil -a -s | grep "Indexing enabled" | wc -l)
|
||||
if [ $enabled -eq 0 ]; then
|
||||
echo "Spotlight indexing is already disabled"
|
||||
exit 0
|
||||
fi
|
||||
sudo mdutil -a -i off
|
||||
sudo mdutil -X /
|
||||
sudo launchctl bootout system /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
|
||||
|
||||
Reference in New Issue
Block a user