From 53da3edbe5b43a994cc916b6571563491a8a414b Mon Sep 17 00:00:00 2001 From: Emmanuel Dreyfus Date: Fri, 12 Aug 2011 12:00:49 +0200 Subject: POSIXly correct: \n replacement is GNU sed specific Change-Id: I5e4ca551b60477d454964e568209ad06f21cc64e Reviewed-on: http://review.gluster.com/227 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- rfc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rfc.sh') diff --git a/rfc.sh b/rfc.sh index e8b5e2b6c..e6cce0d2c 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 -- cgit