Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # - Determine system and customer from pwd
- # - Pull branch from github (assuming it does exist)
- CUSTOMER=`pwd | sed -e 's?.*/\(.*\)/\(.*\)?\1?'`
- SYSTEM=`pwd | sed -e 's?.*/\(.*\)/\(.*\)?\\2?'`
- GIT_BASE="git://github.com/bigpandaio/customer-support"
- echo "CUSTOMER: $CUSTOMER"
- echo "SYSTEM: $SYSTEM"
- if [[ -e customer-support ]]; then
- git clone $GIT_BASE
- cd customer-support
- git checkout "remotes/origin/feature/${CUSTOMER}/${SYSTEM}"
- else
- cd customer-support
- git pull origin "feature/${CUSTOMER}/${SYSTEM}"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement