Skip to content

Instantly share code, notes, and snippets.

@fbartho
Last active August 29, 2015 14:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fbartho/9354346bf6cf436a4dce to your computer and use it in GitHub Desktop.
Save fbartho/9354346bf6cf436a4dce to your computer and use it in GitHub Desktop.
Bash implementation
#!/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