From ebebb5a57e8013ff62b9478de5a87ea04c057828 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 27 Jun 2024 02:31:54 +0100 Subject: [PATCH] trees: explicitly set mode for -b doing nothing means that if a flag is passed, and then another flag overriding it, the resulting action will not be correct; only one flag should be provided anyway, but some users may feel a bit more adventurous. mitigate it. Signed-off-by: Leah Rowe --- script/trees | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/trees b/script/trees index 275ba93..bdd25cb 100755 --- a/script/trees +++ b/script/trees @@ -19,7 +19,7 @@ main() while getopts f:b:m:u:c:x:s:l:n: option; do _f="$1" case "$1" in - -b) : ;; + -b) mode="" ;; -u) mode="oldconfig" ;; -m) mode="menuconfig" ;; -c) mode="distclean" ;;