summaryrefslogtreecommitdiffstats
path: root/rfc.sh
diff options
context:
space:
mode:
authorEmmanuel Dreyfus <manu@netbsd.org>2011-08-12 12:00:49 +0200
committerAnand Avati <avati@gluster.com>2011-08-12 05:09:19 -0700
commit53da3edbe5b43a994cc916b6571563491a8a414b (patch)
tree363f2d6142de3cd1c6a8180729b63ba5ee9e5e37 /rfc.sh
parentabe7843ca6faa03a9b6e1ece3fb85d4c5b02580a (diff)
POSIXly correct: \n replacement is GNU sed specific
Change-Id: I5e4ca551b60477d454964e568209ad06f21cc64e Reviewed-on: http://review.gluster.com/227 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@gluster.com>
Diffstat (limited to 'rfc.sh')
-rwxr-xr-xrfc.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/rfc.sh b/rfc.sh
index e8b5e2b..e6cce0d 100755
--- a/rfc.sh
+++ b/rfc.sh
@@ -60,7 +60,7 @@ editor_mode()
continue;
fi
- sed "s/^\(Change-Id: .*\)$/\1\nBUG: $bug/g" $1 > $1.new && \
+ sed "/^Change-Id:/{p; s/^.*$/BUG: $bug/;}" $1 > $1.new && \
mv $1.new $1;
return;
done