From 116bb0a3ea83557bafc8d8b754d1dd0497e2e181 Mon Sep 17 00:00:00 2001 From: Harry Seeber Date: Wed, 18 Dec 2019 13:24:05 -0700 Subject: [PATCH] support for Catalina softwareupdate output --- scripts/xcode-cli-tools.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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