diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2015-07-10 14:07:44 +0200 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2015-07-10 14:08:44 +0200 |
commit | 883505012cb8faca2e89e26c6b57c6a107b8809b (patch) | |
tree | d9299c4242a2b8d1ab10ad9d3b6b9d3a32ac87da | |
parent | f6f38eb8524aaa2ec7bdaff1db1011d2987b1e47 (diff) |
Remove special characters in ${file} to avoid confusing grep
-rwxr-xr-x | linaro-gcc-git-review-backport-patch.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/linaro-gcc-git-review-backport-patch.sh b/linaro-gcc-git-review-backport-patch.sh index be140b2..1cd3df1 100755 --- a/linaro-gcc-git-review-backport-patch.sh +++ b/linaro-gcc-git-review-backport-patch.sh @@ -33,6 +33,8 @@ sort_patch() touch $SVNPATCH.tmp for file in `echo $GITFILES` do + # Remove special characters in ${file} to avoid confusing grep + file=`echo ${file} | sed 's/\+/./g'` # Line where the diff entry starts LINESTART=`egrep -n "^Index: .*$file" $SVNPATCH | \ head -n 1 | cut -d: -f1` |