Skip to content

Commit

Permalink
Merge pull request #85 from devops-infra/bugfix/quot-try
Browse files Browse the repository at this point in the history
Try escaping quotations
  • Loading branch information
ChristophShyper committed Apr 20, 2022
2 parents 9c202a1 + acb4746 commit c01da33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c01da33

Please sign in to comment.