summaryrefslogtreecommitdiff
path: root/include/init.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/init.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/init.sh')
-rw-r--r--include/init.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/init.sh b/include/init.sh
index b9cb81b1..2eea04c0 100644
--- a/include/init.sh
+++ b/include/init.sh
@@ -45,7 +45,7 @@ xbmkpkg()
eval "`setcfg "config/dependencies/$2"`"
chkvars pkg_add pkglist
- $pkg_add $pkglist || err "Cannot install packages"
+ x_ $pkg_add $pkglist
[ -n "$aur_notice" ] && \
printf "You need AUR packages: %s\n" "$aur_notice" 1>&2; :
@@ -200,7 +200,7 @@ xbmk_create_pathdirs()
(
# set up python v3.x in PATH, in case it's not set up correctly.
# see code above that detected the correct python3 command.
- cd "$XBMK_CACHE/xbmkpath" || err "can't cd $XBMK_CACHE/xbmkpath"
+ x_ cd "$XBMK_CACHE/xbmkpath"
x_ ln -s "`pybin "$python"`" python
) || err "Can't set up python symlink in $XBMK_CACHE/xbmkpath"; :
}