Advertisement
Guest User

Untitled

a guest
Jan 21st, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.46 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. while read oldrev newrev ref
  4. do
  5.   branch=`echo $ref | cut -d/ -f3`
  6.  
  7.   if [ "production" == "$branch" ]; then
  8.     git --work-tree=/var/www/marketplace/data/www/crm.evm-marketplace.com checkout -f $branch
  9.     echo 'Changes pushed live. [PRODUCTION]'
  10.   fi
  11.  
  12.  
  13.   if [ "newLayout" == "$branch" ]; then
  14.     git --work-tree=/var/www/marketplace/data/www/dev-crm.evm-marketplace.com checkout -f $branch
  15.     echo 'Changes pushed live. [DEV-CRM]'
  16.   fi
  17.  
  18. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement