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.
1 parent ea82c94 commit 1b99f21Copy full SHA for 1b99f21
.github/actions/macos-update-clang/action.yml
@@ -4,8 +4,9 @@ runs:
4
steps:
5
- shell: bash
6
run: |
7
+ set -x
8
softwareupdate -l
- label=$(softwareupdate -l 2>/dev/null | grep 'Label:' | grep -o 'Command Line Tools for Xcode.*' | head -1)
9
+ label=$((softwareupdate -l 2>/dev/null | grep 'Label:' | grep -o 'Command Line Tools for Xcode.*' | head -1) || echo '')
10
if [ -n "$label" ]; then
11
softwareupdate -i "$label"
12
xcode_path=$(ls -1 '/Applications' | grep 'Xcode_.*\.app' | head -1)
0 commit comments