Skip to content

Commit a0d5475

Browse files
add sudo only to commit and push ??
1 parent f169738 commit a0d5475

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

travis-ci/deploy2.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ msg="Tag $GIT_TAG Generated from TravisCI for build $TRAVIS_BUILD_NUMBER"
1313
git tag $GIT_TAG -a -m "Tag $GIT_TAG Generated from TravisCI for build $TRAVIS_BUILD_NUMBER"
1414
sudo $TRAVIS_BUILD_DIR/travis-ci/modify-globalblacklist.sh
1515
sudo chown travis:travis $TRAVIS_BUILD_DIR/globalblacklist.conf
16-
#sudo git add $TRAVIS_BUILD_DIR/globalblacklist.conf
17-
git add .
16+
git add $TRAVIS_BUILD_DIR/globalblacklist.conf
17+
#git add .
1818
#git add $TRAVIS_BUILD_DIR/build.txt
19-
git commit -am "Update build version file with $TRAVIS_BUILD_NUMBER"
20-
git push origin master && git push origin master --tags
19+
sudo git commit -am "Update build version file with $TRAVIS_BUILD_NUMBER"
20+
sudo git push origin master && git push origin master --tags
2121
ls -aR
2222
#cat $TRAVIS_BUILD_DIR/globalblacklist.conf
2323
ls -la $TRAVIS_BUILD_DIR

0 commit comments

Comments
 (0)