aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2018-12-19 23:56:20 -0800
committerRobert Yang <liezhi.yang@windriver.com>2018-12-20 00:03:32 -0800
commit3d6fbb3825ef92b93f0e99d4ff06af2156ecac71 (patch)
tree125e68516bd47f009345d05ddf6b7c8e2b0b1657
parent14c291e1fb6324da46885b69fbd7f01b3c6b053e (diff)
downloadopenembedded-core-contrib-rbt/cpr.tar.gz
create-pull-request: fix sed command for SUBJECTrbt/cpr
Fixed when SUBJECT contains slash(/): sed: -e expression #1, char 35: unknown option to `s' Use '#' as separator to fix the problem. Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
-rwxr-xr-xscripts/create-pull-request2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/create-pull-request b/scripts/create-pull-request
index 280880b3f7..ff0f7e69ac 100755
--- a/scripts/create-pull-request
+++ b/scripts/create-pull-request
@@ -278,7 +278,7 @@ fi
# Replace the SUBJECT token with it.
if [ -n "$SUBJECT" ]; then
- sed -i -e "s/\*\*\* SUBJECT HERE \*\*\*/$SUBJECT/" "$CL"
+ sed -i -e "s#\*\*\* SUBJECT HERE \*\*\*#$SUBJECT#" "$CL"
fi