Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- cd /var/www/html
- if git remote update >/dev/null 2>&1; then
- if git status -uno | grep -q 'Your branch is behind'; then
- make clean
- git pull
- make html
- echo "Updated successfully"
- else
- echo "Up-to-date"
- fi
- else
- echo "Failed"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement