Skip to content

Commit 5cca0fa

Browse files
committed
fix the XCode Command Line Tools installation detection
Also remove the command output as it's unecessary.
1 parent d72a750 commit 5cca0fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

macsetup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,8 +662,8 @@ fi
662662
# Notes
663663
# - Cannot be added to apps.yml for now as it doesn't manage custom installation check
664664
#
665-
if [[ $(xcode-select -p 1> /dev/null; echo $?) -eq 2 ]]; then
666-
xcode-select --install
665+
if [[ $(xcode-select -p 2>&1 | grep "Unable to get active developer directory") ]]; then
666+
xcode-select --install >/dev/null 2>&1
667667
pausethescript "Wait for the XCode Tools installation to finish before continuing."
668668
fi
669669

0 commit comments

Comments
 (0)