diff options
author | Emmanuel Dreyfus <manu@netbsd.org> | 2011-08-12 12:00:49 +0200 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-08-12 05:09:19 -0700 |
commit | 53da3edbe5b43a994cc916b6571563491a8a414b (patch) | |
tree | 363f2d6142de3cd1c6a8180729b63ba5ee9e5e37 | |
parent | abe7843ca6faa03a9b6e1ece3fb85d4c5b02580a (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>
-rwxr-xr-x | rfc.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |