chore: Double quote to prevent globbing and word splitting

This commit is contained in:
txtsd 2022-04-06 18:10:19 +05:30
parent e823dd309b
commit beac3155df
No known key found for this signature in database
GPG Key ID: 000F85679D4B6B53
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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