Skip to content

Commit

Permalink
Fix Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellkrogza committed Dec 16, 2019
1 parent faa9287 commit 22c9892
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion dev-tools/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,32 @@ startmarker="_______________"
endmarker="____________________"
totalexploits=$(wc -l < ${TRAVIS_BUILD_DIR}/input-source/exploits.list)

PrepareTravis () {
git remote rm origin
git remote add origin https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
git config --global user.email "${GIT_EMAIL}"
git config --global user.name "${GIT_NAME}"
git config --global push.default simple
git checkout "${GIT_BRANCH}"
}


CommitData () {
commitdate=$(date +%F)
committime=$(date +%T)
timezone=$(date +%Z)
cd ${TRAVIS_BUILD_DIR}
git remote rm origin
git remote add origin https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
git config --global user.email "${GIT_EMAIL}"
git config --global user.name "${GIT_NAME}"
git config --global push.default simple
git checkout master
git add -A
git commit -am "V0.1.${TRAVIS_BUILD_NUMBER} [ci skip]"
git push origin master
}

# ************************************************
# Prepare our input list and remove any duplicates
# ************************************************
Expand Down Expand Up @@ -131,10 +157,12 @@ git commit -am "V0.1.${TRAVIS_BUILD_NUMBER} [ci skip]"
sudo git push origin master
}

PrepareTravis
initiate
generate
updatereadme
commit
#commit
CommitData

# **********************
# Exit With Error Number
Expand Down

0 comments on commit 22c9892

Please sign in to comment.