Move branch write inside calling function

This commit is contained in:
tritoch 2017-06-13 11:32:09 -05:00 committed by GitHub
parent 7bbc7bc402
commit b00b8bc154

View File

@ -6,9 +6,13 @@ TARGET_BRANCH="files"
function doCompile {
python main.py
# Push merge or push to our files repo, not pulls.
if [ "${ghToken:-false}" != "false" ]; then
pushBranch
fi
}
function pushRepo {
function pushBranch {
# Now let's go have some fun with the cloned repo
cd out
ls
@ -64,8 +68,3 @@ rm -rf out/**/* || exit 0
# Run our compile script
doCompile
# Push merge or push to our files repo, not pulls.
if [ "${ghToken:-false}" != "false" ]; then
pushRepo
fi