summaryrefslogtreecommitdiff
path: root/include/get.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-10-04 02:55:52 +0100
committerLeah Rowe <leah@libreboot.org>2025-10-04 02:55:52 +0100
commita09ec1d02b275fa0d79a0a21be77d450fd86318b (patch)
tree7787b7d6f288bbf3cd8da35e6962d88e95216b23 /include/get.sh
parent0605fbe72032125c8b430f1454794be40ab61009 (diff)
xbmk: remove more eval statements
i will eventually find a way to remove them all, while still leaving the code completely clean. in practise, i never use the contents of a file for eval and the inputs are carefully checked. however, over-use of eval is always a bad idea in shell scripting. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/get.sh')
-rw-r--r--include/get.sh19
1 files changed, 15 insertions, 4 deletions
diff --git a/include/get.sh b/include/get.sh
index 20cf7c90..db61958b 100644
--- a/include/get.sh
+++ b/include/get.sh
@@ -3,8 +3,15 @@
# Copyright (c) 2020-2021,2023-2025 Leah Rowe <leah@libreboot.org>
# Copyright (c) 2022 Caleb La Grange <thonkpeasant@protonmail.com>
-eval "`setvars "" loc url bkup_url subcurl subhash subgit subgit_bkup \
- depend subcurl_bkup`"
+depend=""
+loc=""
+url=""
+bkup_url=""
+subgit=""
+subgit_bkup=""
+subcurl=""
+subcurl_bkup=""
+subhash=""
tmpgit="$xbtmp/gitclone"
tmpgitcache="$xbtmp/tmpgit"
@@ -76,8 +83,12 @@ fetch_submodule()
{
mcfgdir="$mdir/${1##*/}"
- eval \
- "`setvars "" subhash subgit subgit_bkup subcurl subcurl_bkup st`"
+ subhash=""
+ subgit=""
+ subgit_bkup=""
+ subcurl=""
+ subcurl_bkup=""
+ st=""
eval "`setcfg "$mcfgdir/module.cfg" 0`"