]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
tests/util/grub-shell: Allow setting the value of debug regardless of its previous...
authorGlenn Washburn <development@efficientek.com>
Tue, 11 Jul 2023 03:01:18 +0000 (22:01 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Mon, 14 Aug 2023 15:06:28 +0000 (17:06 +0200)
This allows an invocation of grub-shell to set the value of debug regardless
of the global default environment variable GRUB_SHELL_DEFAULT_DEBUG.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
tests/util/grub-shell.in

index 9669b7227c10febe3cba9aef39a7e92572c2c5cb..e066105de917cef8d2e3159b6c6f8ce57ad1af51 100644 (file)
@@ -248,6 +248,8 @@ for option in "$@"; do
        trim=0 ;;
     --debug)
         debug=$((debug+1)) ;;
+    --debug=*)
+        debug=$((`echo "$option" | sed -e 's/--debug=//'`)) ;;
     --modules=*)
        ms=`echo "$option" | sed -e 's/--modules=//' -e 's/,/ /g'`
        modules="$modules $ms" ;;