summaryrefslogtreecommitdiff
path: root/include/lib.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-12-30 00:50:53 +0000
committerLeah Rowe <leah@libreboot.org>2024-12-30 01:02:22 +0000
commite565df94fd7a6a4fb2b6a51c3cd938825c66390e (patch)
treecd8367ed4146962695bf82ced4ec76ba1dc116df /include/lib.sh
parentc80cc0a00b6fbe5e94bb35c5760e224ce70c09f0 (diff)
Fix globbing issue in lbmk
When doing e.g. $@ we should use double quotes to prevent globbing. Thanks go to XRevan86 for pointing this out. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/lib.sh')
-rw-r--r--include/lib.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/lib.sh b/include/lib.sh
index f204309d..07b9a8da 100644
--- a/include/lib.sh
+++ b/include/lib.sh
@@ -80,7 +80,7 @@ install_packages()
printf "You need AUR packages: %s\n" "$aur_notice" 1>&2; return 0
}
if [ $# -gt 0 ] && [ "$1" = "dependencies" ]; then
- install_packages $@ || exit 1
+ install_packages "$@" || exit 1
exit 0
fi
@@ -119,7 +119,7 @@ expr "X$XBMK_THREADS" : "X-\{0,1\}[0123456789][0123456789]*$" \
1>/dev/null 2>/dev/null || export XBMK_THREADS=1 # user gave a non-integer
x_() {
- [ $# -lt 1 ] || $@ || \
+ [ $# -lt 1 ] || "$@" || \
$err "Unhandled non-zero exit: $(echo "$@")"; return 0
}