We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 24900a7 + b81587f commit 6495eceCopy full SHA for 6495ece
install.sh
@@ -23,8 +23,8 @@ echo_error() {
23
is_xcode_installed() {
24
if [[ ! $(xcode-\select -p 2> /dev/null) ]]; then return 1; fi
25
26
- OSX_VERSION=$(sw_vers -productVersion | awk -F'.' '{print $1"."$2}')
27
- XCODE_PATTERN="Command Line.*${OSX_VERSION}"
+ OSX_VERSION=$(sw_vers -productVersion | awk -F'.' '{print $1""$2}')
+ XCODE_PATTERN="com.apple.pkg.CLTools_SDK_macOS${OSX_VERSION}"
28
29
if grep -q "${XCODE_PATTERN}" '/Library/Receipts/InstallHistory.plist'; then
30
return 0
0 commit comments