Skip to content

Instantly share code, notes, and snippets.

@schauder
Created January 20, 2016 11:41
Show Gist options
  • Save schauder/3ef94523366a7b871d63 to your computer and use it in GitHub Desktop.
Save schauder/3ef94523366a7b871d63 to your computer and use it in GitHub Desktop.
Switch Configurationg Batch Script
#!/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