Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- while read oldrev newrev ref
- do
- branch=`echo $ref | cut -d/ -f3`
- if [ "production" == "$branch" ]; then
- git --work-tree=/var/www/marketplace/data/www/crm.evm-marketplace.com checkout -f $branch
- echo 'Changes pushed live. [PRODUCTION]'
- fi
- if [ "newLayout" == "$branch" ]; then
- git --work-tree=/var/www/marketplace/data/www/dev-crm.evm-marketplace.com checkout -f $branch
- echo 'Changes pushed live. [DEV-CRM]'
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement