Skip to content

Commit a11db74

Browse files
committed
lib.sh: support sourcing with set -u
1 parent ccf27aa commit a11db74

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ rk33xx_flash_uboot() {
339339
# line. This select allows us to get that information out. This
340340
# fails silently if the toolname isn't known since this script is
341341
# sourced.
342-
case $1 in
342+
case "${1:-}" in
343343
platform2arch)
344344
PLATFORM=$2
345345
set_target_arch_from_platform

0 commit comments

Comments
 (0)