From 50343c20c9e0c08d2081ad7efd5642f52e3abcc3 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Wed, 14 Dec 2016 13:24:13 -0800 Subject: [PATCH] hack/cherry_pick_pull.sh: cleanup patch files Signed-off-by: Jess Frazelle --- hack/cherry_pick_pull.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hack/cherry_pick_pull.sh b/hack/cherry_pick_pull.sh index cd60edba692..43401da9cc2 100755 --- a/hack/cherry_pick_pull.sh +++ b/hack/cherry_pick_pull.sh @@ -173,9 +173,13 @@ for pull in "${PULLS[@]}"; do exit 1 fi } + # set the subject subject=$(grep -m 1 "^Subject" "/tmp/${pull}.patch" | sed -e 's/Subject: \[PATCH//g' | sed 's/.*] //') SUBJECTS+=("#${pull}: ${subject}") + + # remove the patch file from /tmp + rm -f "/tmp/${pull}.patch" done gitamcleanup=false