summaryrefslogtreecommitdiff
path: root/include/init.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-10-16 15:46:44 +0100
committerLeah Rowe <leah@libreboot.org>2025-10-16 15:46:44 +0100
commite1b6ccf69ec42f24d751466cee00b265fe44e899 (patch)
treeb6c8ba5159943a84a8159cf827d6fff82fce9a8f /include/init.sh
parentd84a556bf084b4622cf389847ee3f888bb4dbbe5 (diff)
xbmk: sort global variables alphabetically
also separate some of the special ones. this makes the variables easier to read/find. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/init.sh')
-rw-r--r--include/init.sh30
1 files changed, 15 insertions, 15 deletions
diff --git a/include/init.sh b/include/init.sh
index 9904d780..abd06862 100644
--- a/include/init.sh
+++ b/include/init.sh
@@ -15,27 +15,27 @@ if [ -z "${PATH+x}" ]; then
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
fi
+sha512sum="util/sbase/sha512sum"
+
+aur_notice=""
+basetmp=""
board=""
+checkvarschk=""
+checkvarsxbmk=""
+configdir=""
+datadir=""
+is_child=""
+python=""
+pyver=""
reinstall=""
+relname=""
version=""
versiondate=""
-aur_notice=""
-configdir=""
+xbmklock=""
xbmkpath=""
-datadir=""
xbmkpwd=""
-relname=""
xbmkpwd=""
xbtmp=""
-python=""
-pyver=""
-xbmklock=""
-checkvarsxbmk=""
-checkvarschk=""
-is_child=""
-basetmp=""
-
-sha512sum="util/sbase/sha512sum"
xbmk_init()
{
@@ -184,8 +184,8 @@ xbmk_child_set_env()
xbmk_child_set_tmp()
{
badtmp=""
- xbtmpchk=""
locktmp=""
+ xbtmpchk=""
xbtmpchk="`findpath "$TMPDIR" || err "!findpath $TMPDIR"`" || \
err "!findpath '$TMPDIR'" "xbmk_child_set_tmp" "$@"
@@ -323,9 +323,9 @@ xbmk_set_version()
xbmk_set_pyver()
{
- pyv="import sys; print(sys.version_info[:])"
python="python3"
pyver="2"
+ pyv="import sys; print(sys.version_info[:])"
if ! pybin python3 1>/dev/null; then
python="python"