diff options
author | SeongJae Park <sj@kernel.org> | 2023-12-24 19:01:32 +0000 |
---|---|---|
committer | SeongJae Park <sj@kernel.org> | 2023-12-24 19:11:13 +0000 |
commit | 356014b28900b57aed04e66b903f1628cb88a956 (patch) | |
tree | bd0d689cc4db018bb8f87225f02b5f43c059aa56 | |
parent | 5ee1c22c7fa048b4363e71904785c4bbc52e6780 (diff) | |
download | damon-hack-356014b28900b57aed04e66b903f1628cb88a956.tar.gz |
format_patch: Add suggested recipients in correct position
Signed-off-by: SeongJae Park <sj@kernel.org>
-rwxr-xr-x | format_patch.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/format_patch.sh b/format_patch.sh index e714888..ae84672 100755 --- a/format_patch.sh +++ b/format_patch.sh @@ -49,7 +49,8 @@ do cc=$(sed 's/^/Cc: /' <<< \ $("$get_maintainer" --nogit --nogit-fallback --norolestats --nom "$patch")) mv "$patch" "$patch.old" - echo "$to" > "$patch" + head -n 2 "$patch.old" > "$patch" + echo "$to" >> "$patch" echo "$cc" >> "$patch" if echo "$patch" | grep --quiet "damon" @@ -72,7 +73,7 @@ do echo "Cc: linux-kselftest@vger.kernel.org" >> "$cc_total" fi - cat "$patch.old" >> "$patch" + tail -n +3 "$patch.old" >> "$patch" rm "$patch.old" echo >> "$to_total" |