summaryrefslogtreecommitdiff
path: root/script/update/project/trees
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-10-07 05:36:52 +0100
committerLeah Rowe <leah@libreboot.org>2023-10-07 05:37:11 +0100
commit4708da2ca9a72520f39749b3b34b0bdc2fbfa15d (patch)
tree8c7f436fc53d10665f150e295d2d488b3f86e729 /script/update/project/trees
parent0fad3497b82d9225468835d1b27717050ca6de46 (diff)
use quotes when checking empty strings in scripts
this is far less error-prone Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/update/project/trees')
-rwxr-xr-xscript/update/project/trees4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/update/project/trees b/script/update/project/trees
index 4b25d5b9..f38101c6 100755
--- a/script/update/project/trees
+++ b/script/update/project/trees
@@ -66,8 +66,8 @@ fetch_config()
err "fetch_config: no \"${cfgsdir}/${_target}/target.cfg\""
[ "${_target}" != "${tree}" ] && _target="${tree}" && continue
- [ -z ${tree} ] && err "${_xm}: tree undefined"
- [ -z ${rev} ] && err "${_xm}: revision undefined"
+ [ -z "${tree}" ] && err "${_xm}: tree undefined"
+ [ -z "${rev}" ] && err "${_xm}: revision undefined"
break
done
}