Skip to content

Commit 6495ece

Browse files
authored
Merge pull request #30 from andrewhuynh/master
update xcode check redux
2 parents 24900a7 + b81587f commit 6495ece

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ echo_error() {
2323
is_xcode_installed() {
2424
if [[ ! $(xcode-\select -p 2> /dev/null) ]]; then return 1; fi
2525

26-
OSX_VERSION=$(sw_vers -productVersion | awk -F'.' '{print $1"."$2}')
27-
XCODE_PATTERN="Command Line.*${OSX_VERSION}"
26+
OSX_VERSION=$(sw_vers -productVersion | awk -F'.' '{print $1""$2}')
27+
XCODE_PATTERN="com.apple.pkg.CLTools_SDK_macOS${OSX_VERSION}"
2828

2929
if grep -q "${XCODE_PATTERN}" '/Library/Receipts/InstallHistory.plist'; then
3030
return 0

0 commit comments

Comments
 (0)