Skip to content

Commit

Permalink
Force git pull before push
Browse files Browse the repository at this point in the history
  • Loading branch information
NEMS Linux committed Oct 26, 2018
1 parent 116fead commit 693a769
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nems-push.sh
Expand Up @@ -9,6 +9,7 @@ read -s -p "Github Password: " password
cd /root/nems/nems-admin
echo ""
pwd
git pull
git add *
git commit -am "$comment"
#git push origin master
Expand All @@ -17,6 +18,7 @@ git push "https://Cat5TV:$password@github.com/Cat5TV/nems-admin.git"
cd /usr/local/share/nems/nems-scripts/
echo ""
pwd
git pull
git add *
git commit -am "$comment"
#git push origin master
Expand All @@ -25,6 +27,7 @@ git push "https://Cat5TV:$password@github.com/Cat5TV/nems-scripts.git"
cd /var/www/html/
echo ""
pwd
git pull
git add *
git commit -am "$comment"
#git push origin master
Expand All @@ -33,6 +36,7 @@ git push "https://Cat5TV:$password@github.com/Cat5TV/nems-www.git"
cd /root/nems/nems-migrator/
echo ""
pwd
git pull
git add *
git commit -am "$comment"
#git push origin master
Expand All @@ -41,6 +45,7 @@ git push "https://Cat5TV:$password@github.com/Cat5TV/nems-migrator.git"
cd /var/www/nconf/
echo ""
pwd
git pull
git add *
git commit -am "$comment"
#git push origin develop
Expand All @@ -50,6 +55,7 @@ if [[ -d /root/nems/nems-tools ]]; then
cd /root/nems/nems-tools
echo ""
pwd
git pull
git add *
git commit -am "$comment"
#git push origin master
Expand Down

0 comments on commit 693a769

Please sign in to comment.