Guest User

Untitled

a guest
Feb 27th, 2012
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. ref=$(git symbolic-ref HEAD 2> /dev/null)
  4. if [[ -n $ref ]]; then
  5.  
  6. if [[ $ref =~ "master" ]]; then
  7. rm public/.htaccess
  8. else
  9. echo "RailsEnv ${ref#refs/heads/}" > public/.htaccess
  10. fi
  11. touch tmp/restart.txt
  12. fi
Add Comment
Please, Sign In to add comment