diff --git a/install.sh b/install.sh index 7b6464a..0119ed9 100644 --- a/install.sh +++ b/install.sh @@ -23,14 +23,14 @@ echo "highlight OverLength ctermbg=red ctermfg=white guibg=#592929" >> ~/.vimrc; echo "match OverLength /\\%81v.\\+/" >> ~/.vimrc; # install Xcode Command Line Tools -# https://github.com/timsutton/osx-vm-templates/blob/ce8df8a7468faa7c5312444ece1b977c1b2f77a4/scripts/xcode-cli-tools.sh +# https://github.com/w0de/osx-vm-templates/blob/116bb0a3ea83557bafc8d8b754d1dd0497e2e181/scripts/xcode-cli-tools.sh touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress; PROD=$(softwareupdate -l | grep "\*.*Command Line" | - head -n 1 | awk -F"*" '{print $2}' | - sed -e 's/^ *//' | + tail -n 1 | awk -F"*" '{print $2}' | + sed 's/Label: //g' | tr -d '\n') -softwareupdate -i "$PROD" -v; +softwareupdate -i "$PROD" --verbose; ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"; brew install \