summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-04-11 19:31:26 +0100
committerLeah Rowe <leah@libreboot.org>2025-04-11 19:31:26 +0100
commita25a29cfbb7578ed44e862cc6a4ff019c340f499 (patch)
tree7ddfd68f3ceef4703e25c4fc57b88c360fad6e66
parent1022abf69914f77dbcb360d885cae4c22ea3a223 (diff)
lib.sh: initialise PATH if it's unset
it's incorrect for PATH not to be set, but some users may foolishly blank it out before running lbmk. prevent such issues, by initialising it. Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--include/lib.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/lib.sh b/include/lib.sh
index 47fc7d7f..5f87b9fa 100644
--- a/include/lib.sh
+++ b/include/lib.sh
@@ -6,6 +6,8 @@
export LC_COLLATE=C
export LC_ALL=C
+[ -z "${PATH+x}" ] && \
+ export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
xbmkpath="$PATH"
_ua="Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"