summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrfc.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/rfc.sh b/rfc.sh
index e8b5e2b6c7a..e6cce0d2cfc 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