Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- S1=$(git rev-parse --show-toplevel)
- echo "git repo is $S1"
- S2='etl.git'
- echo "match var is $S2"
- if [ "$S1"=="$S2" ]; then
- #unset GIT_INDEX_FILE
- #export GIT_WORK_TREE=/srv/etl/
- #export GIT_DIR=/home/git/repositories/etl.git
- #git checkout -f
- echo "im running"
- echo updating crontab
- #crontab /srv/etl/control
- fi
Add Comment
Please, Sign In to add comment