Created
January 20, 2016 11:41
-
-
Save schauder/3ef94523366a7b871d63 to your computer and use it in GitHub Desktop.
Switch Configurationg Batch Script
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
#!/bin/bash | |
if [ $# -ne 1 ] | |
then | |
echo "Usage: `basename $0` LOCATION-NAME" | |
exit 1 | |
fi | |
# switch git configuration | |
cat ~/base.gitconfig ~/$1.gitconfig > ~/.gitconfig | |
# switch gradle configuration | |
cat ~/.gradle/$1.properties ~/.gradle/base.properties > ~/.gradle/gradle.properties | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment