From acb4746282e07509217c49179ebb502f77ee1fc0 Mon Sep 17 00:00:00 2001 From: Krzysztof Szyper <45788587+ChristophShyper@users.noreply.github.com> Date: Wed, 20 Apr 2022 14:52:38 +0200 Subject: [PATCH] Try escaping quotations --- entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index aafcd2b..1c6a69a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -158,8 +158,9 @@ fi if [[ -z "${PR_NUMBER}" ]]; then echo -e "\nCreating pull request" # shellcheck disable=SC2016 - # shellcheck disable=SC2001 COMMAND="hub pull-request -b ${TARGET_BRANCH} -h ${SOURCE_BRANCH} --no-edit ${ARG_LIST[@]}" + # shellcheck disable=SC2001 + COMMAND=$(echo -e "${COMMAND}" | sed 's/\`/\\`/g') echo -e "Running: ${COMMAND}" URL=$(sh -c "${COMMAND}") # shellcheck disable=SC2181