Skip to content

Commit

Permalink
Try escaping quotations
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristophShyper committed Apr 20, 2022
1 parent 9c202a1 commit acb4746
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 acb4746

Please sign in to comment.