diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-09-11 14:24:55 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-09-11 14:24:55 +0100 |
| commit | 8173aea83be24e807bed40bec2e2eca33d87b4e3 (patch) | |
| tree | 383fd9071e1a168ff1277138532fe765b8473a0e /include/init.sh | |
| parent | aad748c5ca04a261736b7b1c48b94f7657a96f01 (diff) | |
xbmk: reintroduce setvar as newvar (init only)
use the simpler logic recently introduced, generalised
but it only sets variables to empty. this is safer than
the previous design, and brings the same reduction in
sloccount overall since i wasn't doing anything other
than emptying variables anyway, when it was used before.
i didn't like the long list of variables inside files,
so this makes everything more readable.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/init.sh')
| -rw-r--r-- | include/init.sh | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/include/init.sh b/include/init.sh index a0d44555..284b4c3f 100644 --- a/include/init.sh +++ b/include/init.sh @@ -33,25 +33,9 @@ fi sha512sum="util/sbase/sha512sum" -aur_notice="" -basetmp="" -board="" -checkvarschk="" -checkvarsxbmk="" -configdir="" -datadir="" -is_child="" -python="" -pyver="" -reinstall="" -relname="" -version="" -versiondate="" -xbmklock="" -xbmkpath="" -xbmkpwd="" -xbmkpwd="" -xbtmp="" +eval "`newvar aur_notice basetmp board checkvarschk checkvarsxbmk configdir \ + datadir is_child python pyver reinstall relname version versiondate \ + xbmklock xbmkpath xbmkpwd xbmkpwd xbtmp`" xbmk_init() { |
