From 087a64b1aeafe15a45fe7ed6a9a10b4b4bd31a9e Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 20 Mar 2020 17:00:11 +0100 Subject: centos-ci: protect a variable expansions with quotes Signed-off-by: Michael Adam --- samba-integration-centos-ci-tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samba-integration-centos-ci-tests.sh b/samba-integration-centos-ci-tests.sh index cc05dca..933b02b 100755 --- a/samba-integration-centos-ci-tests.sh +++ b/samba-integration-centos-ci-tests.sh @@ -52,8 +52,8 @@ cd "${GIT_REPO_NAME}" # by default we clone the master branch, but maybe this was triggered through a PR? if [ -n "${ghprbPullId}" ] then - git fetch origin pull/${ghprbPullId}/head:pr_${ghprbPullId} - git checkout pr_${ghprbPullId} + git fetch origin "pull/${ghprbPullId}/head:pr_${ghprbPullId}" + git checkout "pr_${ghprbPullId}" git rebase master if [ $? -ne 0 ] ; then -- cgit