summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-01-03 14:34:42 +0000
committerLeah Rowe <leah@libreboot.org>2025-01-03 14:35:31 +0000
commit5284f20b9811a65120837ab60e3ce02ca6937c37 (patch)
treef708a4750a10a9b26c2246d5e6a27810764724fb
parentd825f9a9683c0d7996f532223c43c14f30b411b9 (diff)
fix ./mk dependencies build issue
the bug was actually caused by chkvars add an escape for the quotes and bam. fixed. without this, i got the following e.g. For command: ./mk dependencies debian Output: ./mk: 1: [: apt-get: unexpected operator ERROR ./mk: pkg_add unset Someone reported a similar issue with the Arch one, which is also now fixed. This regression was caused by the previous commit: commit 0cf58c22734b19293f4cbef83add59b031ca1773 Author: Leah Rowe <leah@libreboot.org> Date: Thu Jan 2 23:52:45 2025 +0000 fix lbmk shellcheck errors I forgot to escape the double quotes in an eval. Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--include/lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/lib.sh b/include/lib.sh
index 8886cfc8..2b630797 100644
--- a/include/lib.sh
+++ b/include/lib.sh
@@ -41,7 +41,7 @@ chkvars()
{
for var in "$@"; do
eval "[ -n "\${$var+x}" ] || \$err \"$var unset\""
- eval "[ -n "\$$var" ] || \$err \"$var unset\""
+ eval "[ -n \"\$$var\" ] || \$err \"$var unset\""
done; return 0
}