1
0
mirror of https://git.envs.net/envs/ifconfig synced 2024-11-22 09:51:57 +01:00

(*)fixed commit prebuilt branch

This commit is contained in:
Fan Yang 2015-01-10 12:56:34 +08:00
parent fdbb012dda
commit 626fc93ccb

@ -77,8 +77,8 @@ prebuilt_prepare()
git config user.name "${GIT_NAME}"
git config user.email "${GIT_EMAIL}"
# clean working dir
rm -f .git/index
git clean -df
#rm -f .git/index
#git clean -df
}
prebuilt_commit() {
@ -104,8 +104,8 @@ prebuilt_push() {
# check for GitHub access token
[ "${GH_TOKEN+set}" = set ] || \
skip "GitHub access token not available, not updating prebuilt branch."
#[ "${#GH_TOKEN}" -eq 40 ] || \
# abort "GitHub token invalid: found ${#GH_TOKEN} characters, expected 40."
[ "${#GH_TOKEN}" -eq 40 ] || \
abort "GitHub token invalid: found ${#GH_TOKEN} characters, expected 40."
cd "${TRAVIS_BUILD_DIR}/prebuilt";
# setup credentials (hide in "set -x" mode)