From a25a29cfbb7578ed44e862cc6a4ff019c340f499 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 11 Apr 2025 19:31:26 +0100 Subject: 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 --- include/lib.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/lib.sh') 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" -- cgit v1.2.1