@@ -4,32 +4,32 @@ MONTH=$(date +"%m")
44cd $TRAVIS_BUILD_DIR
55# sudo whoami
66# sudo chown root:root -R $TRAVIS_BUILD_DIR
7- sudo git remote -v
7+ git remote -v
88echo " First check of remote"
9- sudo git remote rm origin
9+ git remote rm origin
1010echo " Try removing remote"
11- sudo git remote -v
11+ git remote -v
1212echo " Second check of remote"
13- sudo git remote add origin https://${GH_TOKEN} @github.com/${TRAVIS_REPO_SLUG} .git
14- sudo git remote -v
13+ git remote add origin https://${GH_TOKEN} @github.com/${TRAVIS_REPO_SLUG} .git
14+ git remote -v
1515echo " Third Check of Remote After Adding it"
1616ls -l $TRAVIS_BUILD_DIR /.git/FETCH_HEAD
1717ls -la $TRAVIS_BUILD_DIR
1818ls -la $TRAVIS_BUILD_DIR /.git
19- sudo git fetch origin master
19+ git fetch origin master
2020ls -la $TRAVIS_BUILD_DIR /.git
2121echo " Check permissions on git HEAD / get dir listing of travis build dir"
22- sudo git config --global user.email " ${GIT_EMAIL} "
23- sudo git config --global user.name " ${GIT_NAME} "
24- sudo git config --global push.default simple
22+ git config --global user.email " ${GIT_EMAIL} "
23+ git config --global user.name " ${GIT_NAME} "
24+ git config --global push.default simple
2525export GIT_TAG=V2.$YEAR -$MONTH .$TRAVIS_BUILD_NUMBER
2626msg=" Tag Generated from TravisCI for build $TRAVIS_BUILD_NUMBER "
2727# echo "$msg" >> $TRAVIS_BUILD_DIR/build.txt
2828sudo $TRAVIS_BUILD_DIR /travis-ci/modify-globalblacklist.sh
2929# sudo git add $TRAVIS_BUILD_DIR/globalblacklist.conf
30- sudo git add -A .
30+ git add -A .
3131# git add $TRAVIS_BUILD_DIR/build.txt
32- sudo git commit -m " Update build version file with $TRAVIS_BUILD_NUMBER "
32+ git commit -m " Update build version file with $TRAVIS_BUILD_NUMBER "
3333
3434# YEAR=$(date +"%Y")
3535# MONTH=$(date +"%m")
0 commit comments