summaryrefslogtreecommitdiff
path: root/script/handle
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-10-05 22:16:07 +0100
committerLeah Rowe <leah@libreboot.org>2023-10-05 22:16:07 +0100
commit106841024a5d744768734def462387648d473014 (patch)
tree5af66850a72e7f6610278b18b404f33169eab398 /script/handle
parentcad7648a2696f9453028c98ea74aac7bde85feeb (diff)
general code cleanup in shell scripts
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/handle')
-rwxr-xr-xscript/handle/make/config8
1 files changed, 4 insertions, 4 deletions
diff --git a/script/handle/make/config b/script/handle/make/config
index cd13aca6..9d028a85 100755
--- a/script/handle/make/config
+++ b/script/handle/make/config
@@ -97,18 +97,18 @@ handle_src_tree()
target_dir="${cfgsdir}/${target}"
xx_ mkdir -p "${elfdir}/${target}"
- eval "$(setvars "undefined" arch tree)"
+ eval "$(setvars "" arch tree)"
romtype="normal"
- [ ! -f "${target_dir}/target.cfg" ] && \
+ [ -f "${target_dir}/target.cfg" ] || \
fail "handle_src_tree: ${target_dir}: missing target.cfg"
# Override the above defaults using target.cfg
. "${target_dir}/target.cfg" # source
- [ "${tree}" = "undefined" ] && \
+ [ -z ${tree} ] && \
fail "handle_src_tree: ${target_dir}: tree undefined"
- [ "${arch}" = "undefined" ] && \
+ [ -z ${arch} ] && \
fail "handle_src_tree: ${target_dir}: undefined cpu type"
codedir="${project}/${tree}"