summaryrefslogtreecommitdiff
path: root/include/tree.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-05-09 20:54:23 +0100
committerLeah Rowe <leah@libreboot.org>2025-05-09 20:54:23 +0100
commit81dbde7e09f06c7f227fd0d78498df6e1c269f84 (patch)
treea3da8fe6888d2b226e86b4e13f254a03a7d7c116 /include/tree.sh
parent14d46abceda7a7ad6081b6ab321fb0efb4bc3325 (diff)
lbmk: use x_ instead of err, where appropriate
many places in lbmk used err, because older versions of x_ did not handle globbing properly. however, use of x_ is preferable on trivial commands. the only time err() should be called is what it has to be, when x_ can't work, or when a more useful error message is needed, for context. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/tree.sh')
-rw-r--r--include/tree.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tree.sh b/include/tree.sh
index 4d0c533d..47f65d10 100644
--- a/include/tree.sh
+++ b/include/tree.sh
@@ -322,7 +322,7 @@ check_cmake()
check_autoconf()
{
(
- cd "$1" || err "!cd $1"
+ x_ cd "$1"
[ -f "bootstrap" ] && x_ ./bootstrap $bootstrapargs
[ -f "autogen.sh" ] && x_ ./autogen.sh $autogenargs
[ -f "configure" ] && x_ ./configure $autoconfargs; :