mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
trees: clean up initialisation of the dry variable
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+5
-3
@@ -26,10 +26,12 @@ main()
|
|||||||
{
|
{
|
||||||
while getopts f:b:m:u:c:x:s:l:n:d: option; do
|
while getopts f:b:m:u:c:x:s:l:n:d: option; do
|
||||||
[ -n "$_f" ] && $err "only one flag is permitted"
|
[ -n "$_f" ] && $err "only one flag is permitted"
|
||||||
_f="$1" && [ "$_f" = "-d" ] && dry=":"
|
_f="$1"
|
||||||
|
|
||||||
case "$1" in
|
case "$_f" in
|
||||||
-d) mode="" ;;
|
-d)
|
||||||
|
mode=""
|
||||||
|
dry=":" ;;
|
||||||
-b) mode="" ;;
|
-b) mode="" ;;
|
||||||
-u) mode="oldconfig" ;;
|
-u) mode="oldconfig" ;;
|
||||||
-m) mode="menuconfig" ;;
|
-m) mode="menuconfig" ;;
|
||||||
|
|||||||
Reference in New Issue
Block a user