Last active
August 29, 2015 14:27
-
-
Save fbartho/9354346bf6cf436a4dce to your computer and use it in GitHub Desktop.
Bash implementation
This file contains hidden or 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
#!/bin/bash | |
`xcode-select -p | grep -i beta > /dev/null` | |
if [ $? -eq 0 ] | |
then | |
echo "Using beta. Switching to release." | |
sudo xcode-select -s /Applications/Xcode.app | |
else | |
echo "Using release. Switching to beta." | |
sudo xcode-select -s /Applications/Xcode-beta.app | |
fi | |
xcode-select -p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment