We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c1c3bcc + b37a6e7 commit e82afcfCopy full SHA for e82afcf
.github/actions/macos-update-clang/action.yml
@@ -8,7 +8,7 @@ runs:
8
label=$((softwareupdate -l 2>/dev/null | grep 'Label:' | grep -o 'Command Line Tools for Xcode.*' | head -1) || echo '')
9
if [ -n "$label" ]; then
10
softwareupdate -i "$label"
11
- xcode_path=$(ls -1 '/Applications' | grep 'Xcode_.*\.app' | head -1)
+ xcode_path=$(ls -1 '/Applications' | grep 'Xcode_.*\.app' | sort -r | head -1)
12
sudo xcode-select -s "/Applications/$xcode_path"
13
else
14
echo "Not found."
0 commit comments