Guest User

Untitled

a guest
Jul 20th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #!/bin/bash
  2. S1=$(git rev-parse --show-toplevel)
  3. echo "git repo is $S1"
  4. S2='etl.git'
  5. echo "match var is $S2"
  6. if [ "$S1"=="$S2" ]; then
  7. #unset GIT_INDEX_FILE
  8. #export GIT_WORK_TREE=/srv/etl/
  9. #export GIT_DIR=/home/git/repositories/etl.git
  10. #git checkout -f
  11. echo "im running"
  12. echo updating crontab
  13. #crontab /srv/etl/control
  14. fi
Add Comment
Please, Sign In to add comment