lib.sh: support sourcing with set -u

This commit is contained in:
classabbyamp 2023-11-19 15:50:14 -05:00
parent ccf27aa90e
commit a11db74f39
No known key found for this signature in database
GPG Key ID: 6BE0755918A4C7F5
1 changed files with 1 additions and 1 deletions

2
lib.sh
View File

@ -339,7 +339,7 @@ rk33xx_flash_uboot() {
# line. This select allows us to get that information out. This
# fails silently if the toolname isn't known since this script is
# sourced.
case $1 in
case "${1:-}" in
platform2arch)
PLATFORM=$2
set_target_arch_from_platform