From ae0f1189bdd48935b4c8bc65f918bdeeb84adce1 Mon Sep 17 00:00:00 2001 From: Kreyren Date: Sat, 16 Sep 2023 02:13:44 +0200 Subject: [PATCH] cli-flash.sh: replace x$varx != xx check with sane declaration (#5713) Cherrypicked from https://github.com/armbian/build/pull/5689 --- lib/functions/cli/cli-flash.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions/cli/cli-flash.sh b/lib/functions/cli/cli-flash.sh index 79af87f8de..5f759ec18b 100644 --- a/lib/functions/cli/cli-flash.sh +++ b/lib/functions/cli/cli-flash.sh @@ -15,7 +15,7 @@ function cli_flash_pre_run() { } function cli_flash_run() { - if [[ "x${BOARD}x" != "xx" ]]; then + if [[ -n "${BOARD}" ]]; then use_board="yes" prep_conf_main_minimal_ni < /dev/null # no stdin for this, so it bombs if tries to be interactive. else use_board="no" prep_conf_main_minimal_ni < /dev/null # no stdin for this, so it bombs if tries to be interactive.