Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo "If this isn't in your KSP/saves folder, you're gonna have have a bad time."
- select ud in "Pull" "Push"; do
- case $ud in
- Pull ) if [ ! -d "GitPublicSave" ]; then
- git clone https://github.com/RGood/GitPublicSave.git
- exit
- else
- cd ./GitPublicSave/
- git pull
- exit
- fi;;
- Push ) if [ ! -d "GitPublicSave" ]; then
- echo "Nothing to do here. Nothing to upload. No \"GitPublicSave\" folder."
- exit
- else cd ./GitPublicSave
- git add *
- git commit -m "Automatic upload from Camoceltic's Git 'er Done Shell Script."
- git push
- exit
- fi;;
- esac
- done
- exit
Add Comment
Please, Sign In to add comment