cli-flash.sh: replace x$varx != xx check with sane declaration (#5713)

Cherrypicked from https://github.com/armbian/build/pull/5689
This commit is contained in:
Kreyren 2023-09-16 02:13:44 +02:00 committed by GitHub
parent 22c4336de4
commit ae0f1189bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.