Last active
December 13, 2015 22:19
-
-
Save nacho4d/4983541 to your computer and use it in GitHub Desktop.
Check xcode-select is installed and get Xcode path
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 xcode-select to check Xcode + Developer tools are installed | |
command -v xcode-select >/dev/null 2>&1 || { echo >&2 "Make sure Xcode together with xcode-select command is installed. Aborting."; exit 1; } | |
XCODE_PATH=$(xcode-select --print-path 2>&1) | |
echo $XCODE_PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Based on:
http://stackoverflow.com/questions/592620/check-if-a-program-exists-from-a-bash-script