diff --git a/scripts/xcode-cli-tools.sh b/scripts/xcode-cli-tools.sh index 1a2e626..ba82416 100755 --- a/scripts/xcode-cli-tools.sh +++ b/scripts/xcode-cli-tools.sh @@ -13,7 +13,7 @@ if [ "$OSX_VERS" -ge 9 ]; then # in Apple's SUS catalog touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress # find the CLI Tools update - PROD=$(softwareupdate -l | grep "\*.*Command Line" | tail -n 1 | awk -F"*" '{print $2}' | sed -e 's/^ *//' | tr -d '\n') + PROD=$(softwareupdate -l | grep "\*.*Command Line" | tail -n 1 | awk -F"*" '{print $2}' | sed -e 's/^ *//' | sed 's/Label: //g' | tr -d '\n') # install it softwareupdate -i "$PROD" --verbose rm /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress