trees: clean up initialisation of the dry variable

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-04-11 14:09:36 +01:00
parent c7636ff1df
commit 33bb0ecf76
+5 -3
View File
@@ -26,10 +26,12 @@ main()
{
while getopts f:b:m:u:c:x:s:l:n:d: option; do
[ -n "$_f" ] && $err "only one flag is permitted"
_f="$1" && [ "$_f" = "-d" ] && dry=":"
_f="$1"
case "$1" in
-d) mode="" ;;
case "$_f" in
-d)
mode=""
dry=":" ;;
-b) mode="" ;;
-u) mode="oldconfig" ;;
-m) mode="menuconfig" ;;