Don't install CLT if Xcode is installed
This commit is contained in:
@@ -47,6 +47,7 @@ function majorMinor() {
|
||||
}
|
||||
|
||||
function shouldInstallCommandLineTools() {
|
||||
[[ ! -d "/Applications/Xcode.app" ]] || return 1
|
||||
local macosVersion=$(majorMinor $(/usr/bin/sw_vers -productVersion))
|
||||
if versionGT "${macosVersion}" "10.13"
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user