Merge elementsproject/secp256k1-zkp#145: sync-upstream: fix quoting
95ee1fa0303fc72ca10f594db5b1c4a8551fed3d sync-upstream: fix quoting (Jonas Nick) Pull request description: ACKs for top commit: real-or-random: ACK 95ee1fa0303fc72ca10f594db5b1c4a8551fed3d Tree-SHA512: e730d5985cf3b02998d8cd07d3e007e3b5239745553a2b275f7442298f2602c154d3bdeb5904f81cc0da3ce2bd42cf09ba946afa9ab3215da2ff3c9ce2f63777
This commit is contained in:
commit
7fec4e7acc
@ -100,11 +100,20 @@ git checkout master
|
||||
git pull
|
||||
git checkout -b temp-merge-"$PRNUM"
|
||||
|
||||
# Escape single quote
|
||||
# ' -> '\''
|
||||
quote() {
|
||||
local quoted=${1//\'/\'\\\'\'}
|
||||
printf "%s" "$quoted"
|
||||
}
|
||||
TITLE=$(quote "$TITLE")
|
||||
BODY=$(quote "$BODY")
|
||||
|
||||
BASEDIR=$(dirname "$0")
|
||||
FNAME="$BASEDIR/gh-pr-create.sh"
|
||||
cat <<EOT > "$FNAME"
|
||||
#!/bin/sh
|
||||
gh pr create -t "$TITLE" -b "$BODY" --web
|
||||
gh pr create -t '$TITLE' -b '$BODY' --web
|
||||
# Remove temporary branch
|
||||
git checkout master
|
||||
git branch -D temp-merge-"$PRNUM"
|
||||
|
Loading…
x
Reference in New Issue
Block a user