Last active
June 10, 2018 02:07
-
-
Save rtrouton/59947b6d451981da7a5f4069eedd9934 to your computer and use it in GitHub Desktop.
Section added to install_xcode_command_line_tools.sh to detect if Apple's softwareupdate command line tool has returned more than one Xcode command line tool installation option.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check to see if the softwareupdate tool has returned more than one Xcode | |
# command line tool installation option. If it has, use the last one listed | |
# as that should be the latest Xcode command line tool installer. | |
if (( $(grep -c . <<<"$cmd_line_tools") > 1 )); then | |
cmd_line_tools_output="$cmd_line_tools" | |
cmd_line_tools=$(printf "$cmd_line_tools_output" | tail -1) | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment