[OE-core] [PATCH 1/1] create-pull-request: fix sed command for SUBJECT
Robert Yang
liezhi.yang at windriver.com
Thu Dec 20 08:04:54 UTC 2018
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 at windriver.com>
---
scripts/create-pull-request | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/create-pull-request b/scripts/create-pull-request
index 280880b..ff0f7e6 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
--
2.10.2
More information about the Openembedded-core
mailing list