mirror of
https://github.com/unmojang/meta.git
synced 2025-09-22 10:43:29 -04:00
refactor: move GIT_SSH_COMMAND into local config
This commit is contained in:
parent
e9f30a464f
commit
799d5c3b85
3
clone.sh
3
clone.sh
@ -5,6 +5,9 @@ cd "${BASEDIR}"
|
||||
BASEDIR=`pwd`
|
||||
|
||||
source config.sh
|
||||
if [ -f config/config_local.sh ]; then
|
||||
source config/config_local.sh
|
||||
fi
|
||||
|
||||
set -x
|
||||
|
||||
|
@ -3,5 +3,6 @@ export GIT_AUTHOR_NAME="Herpington Derpson"
|
||||
export GIT_AUTHOR_EMAIL="herpderp@derpmail.com"
|
||||
export GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
|
||||
export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
|
||||
export DEPLOY_TO_S3=false
|
||||
export DEPLOY_TO_FOLDER=false
|
||||
export DEPLOY_TO_FOLDER=false
|
||||
export DEPLOY_TO_GIT=true
|
||||
export GIT_SSH_COMMAND="ssh -i ${BASEDIR}/config/deploy.key"
|
||||
|
@ -53,7 +53,7 @@ if [ "${DEPLOY_TO_GIT}" = true ] ; then
|
||||
upstream_git add liteloader/*.json || fail_in
|
||||
if ! upstream_git diff --cached --exit-code ; then
|
||||
upstream_git commit -a -m "Update ${currentDate}" || fail_in
|
||||
GIT_SSH_COMMAND="ssh -i ${BASEDIR}/config/deploy.key" upstream_git push || exit 1
|
||||
upstream_git push || exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
@ -77,7 +77,7 @@ if [ "${DEPLOY_TO_GIT}" = true ] ; then
|
||||
|
||||
if ! polymc_git diff --cached --exit-code ; then
|
||||
polymc_git commit -a -m "Update ${currentDate}" || fail_out
|
||||
GIT_SSH_COMMAND="ssh -i ${BASEDIR}/config/deploy.key" polymc_git push || exit 1
|
||||
polymc_git push || exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user