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 cbmk.

prevent such issues, by initialising it.

Signed-off-by: Leah Rowe <leah@libreboot.org>
25.04_branch
Leah Rowe 2025-04-11 19:31:26 +01:00
parent 18689092d3
commit 891a7d8e63
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,8 @@
export LC_COLLATE=C export LC_COLLATE=C
export LC_ALL=C export LC_ALL=C
[ -z "${PATH+x}" ] && \
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
xbmkpath="$PATH" xbmkpath="$PATH"
_ua="Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0" _ua="Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"