diff options
author | Leah Rowe <leah@libreboot.org> | 2023-10-20 09:11:29 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-10-20 09:11:29 +0100 |
commit | 31b35bb4ceb785a5649d25d7fcf68c93da82bcde (patch) | |
tree | f80cd7d9a25850a9ab62d2e66a5e425a375a1a11 /script/update | |
parent | baa3d4f217863ff34c03d54c4014f53812ae12ec (diff) |
include/git: fix error caused by sh idiosyncrasy
when [] is used right at the end of a function, or
certain loops/subshells, some sh implementations will
just return a non-zero exit
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/update')
-rwxr-xr-x | script/update/trees | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/script/update/trees b/script/update/trees index 88f22c31..64958522 100755 --- a/script/update/trees +++ b/script/update/trees @@ -145,9 +145,8 @@ handle_src_tree() . "${target_dir}/target.cfg" || \ err "handle_src_tree ${target_dir}: cannot load target.cfg" - for ix in arch tree; do - eval "[ -z \"\${$ix}\" ] && err \"handle_src: $ix undefined\"" - done + [ -z "${arch}" ] && err "handle_src_tree $project/$tree: arch unset" + [ -z "${tree}" ] && err "handle_src_tree $project/$tree: tree unset" codedir="src/${project}/${tree}" |