From d8029a3fe7e6d24eef0ec5fe6e11bbd245e04873 Mon Sep 17 00:00:00 2001 From: Simon Fraser Date: Fri, 5 Jun 2020 12:06:21 +0000 Subject: [PATCH] Bug 1643661 Fix shell quoting with hg commands r=mtabara shellcheck will moan about this, as it's potentially unsafe Differential Revision: https://phabricator.services.mozilla.com/D78486 --- .../docker/periodic-updates/scripts/periodic_file_updates.sh | 4 ++-- .../python-dependency-update/scripts/update_pipfiles.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/taskcluster/docker/periodic-updates/scripts/periodic_file_updates.sh b/taskcluster/docker/periodic-updates/scripts/periodic_file_updates.sh index bd029ded2b0f..7cf7b93405c4 100755 --- a/taskcluster/docker/periodic-updates/scripts/periodic_file_updates.sh +++ b/taskcluster/docker/periodic-updates/scripts/periodic_file_updates.sh @@ -406,8 +406,8 @@ function clone_repo { ${HG} robustcheckout --sharebase /tmp/hg-store -b default "${HGREPO}" "${REPODIR}" fi - ${HG} -R ${REPODIR} pull - ${HG} -R ${REPODIR} update -C default + ${HG} -R "${REPODIR}" pull + ${HG} -R "${REPODIR}" update -C default } # Copies new HSTS files in place, and commits them. diff --git a/taskcluster/docker/python-dependency-update/scripts/update_pipfiles.sh b/taskcluster/docker/python-dependency-update/scripts/update_pipfiles.sh index a05df4ab6fef..c6f9b107011e 100755 --- a/taskcluster/docker/python-dependency-update/scripts/update_pipfiles.sh +++ b/taskcluster/docker/python-dependency-update/scripts/update_pipfiles.sh @@ -30,8 +30,8 @@ function clone_repo { ${CLONE_CMD} fi - ${HG} -R ${REPODIR} pull - ${HG} -R ${REPODIR} update -C default + ${HG} -R "${REPODIR}" pull + ${HG} -R "${REPODIR}" update -C default } # Push all pending commits to Phabricator