mirror of
https://github.com/unmojang/meta.git
synced 2025-09-24 03:31:03 -04:00
chore: Double quote to prevent globbing and word splitting
This commit is contained in:
parent
e823dd309b
commit
beac3155df
4
clone.sh
4
clone.sh
@ -12,9 +12,9 @@ fi
|
||||
set -x
|
||||
|
||||
if [ ! -d "${UPSTREAM_DIR}" ]; then
|
||||
git clone ${UPSTREAM_REPO} ${UPSTREAM_DIR}
|
||||
git clone "${UPSTREAM_REPO}" "${UPSTREAM_DIR}"
|
||||
fi
|
||||
|
||||
if [ ! -d "${PMC_DIR}" ]; then
|
||||
git clone ${PMC_REPO} ${PMC_DIR}
|
||||
git clone "${PMC_REPO}" "${PMC_DIR}"
|
||||
fi
|
||||
|
@ -39,7 +39,7 @@ function polymc_git {
|
||||
currentDate=$(date --iso-8601)
|
||||
|
||||
upstream_git reset --hard HEAD || exit 1
|
||||
upstream_git checkout ${BRANCH} || exit 1
|
||||
upstream_git checkout "${BRANCH}" || exit 1
|
||||
|
||||
python updateMojang.py || fail_in
|
||||
python updateForge.py || fail_in
|
||||
@ -58,7 +58,7 @@ if [ "${DEPLOY_TO_GIT}" = true ] ; then
|
||||
fi
|
||||
|
||||
polymc_git reset --hard HEAD || exit 1
|
||||
polymc_git checkout ${BRANCH} || exit 1
|
||||
polymc_git checkout "${BRANCH}" || exit 1
|
||||
|
||||
python generateMojang.py || fail_out
|
||||
python generateForge.py || fail_out
|
||||
@ -85,7 +85,7 @@ if [ "${DEPLOY_TO_FOLDER}" = true ] ; then
|
||||
DEPLOY_FOLDER_var="DEPLOY_FOLDER_$MODE"
|
||||
DEPLOY_FOLDER="${!DEPLOY_FOLDER_var}"
|
||||
echo "Deploying to ${DEPLOY_FOLDER}"
|
||||
rsync -rvog --chown=${DEPLOY_FOLDER_USER}:${DEPLOY_FOLDER_GROUP} --exclude=.git ${BASEDIR}/${PMC_DIR}/ ${DEPLOY_FOLDER}
|
||||
rsync -rvog --chown="${DEPLOY_FOLDER_USER}:${DEPLOY_FOLDER_GROUP}" --exclude=.git "${BASEDIR}/${PMC_DIR}/" "${DEPLOY_FOLDER}"
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user