From 571fc94c10e2f0351cd0e2f33f16c583270696fa Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Tue, 6 Sep 2022 13:37:11 +0200 Subject: [PATCH] scripts/bad_stable: update it a bit --- scripts/bad_stable | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/scripts/bad_stable b/scripts/bad_stable index ed318b14558..c2b3ed46bc0 100755 --- a/scripts/bad_stable +++ b/scripts/bad_stable @@ -162,7 +162,7 @@ reply() -date="$(date -R)" \ -message_id="$ID" \ "$CHARCMD" | \ - ~/bin/msmtp-enqueue.sh -a coco $to + ~/bin/msmtp-enqueue.sh $to } git_id="$1" @@ -170,13 +170,20 @@ shift if [ "${git_id}" == "" ] ; then echo "bad_stable GIT_ID KERNEL_VERSION" - echo "Must provide kernel version to be told is bad" + echo "Must provide git id to be told is bad" exit; fi echo "git_id = ${git_id}" -for STABLE_VERSION in $* +if [ "$#" == "0" ] ; then + versions=$(/home/gregkh/linux/stable/active_kernel_versions_get.sh) +else + versions="$*" +fi +echo "versions=${versions}" + +for STABLE_VERSION in ${versions} do echo "bad version = ${STABLE_VERSION}" TMPFILE=`mktemp bad_patch.XXXXX` || exit 1 -- 2.47.2