From 0764c969a29b54166bb64e24e257f15a536a8be4 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 11 Apr 2025 17:52:18 +0100 Subject: lbmk: use pwd util, not PWD environmental variable PWD could be anything, if the user manually exported it before running lbmk. always run pwd instead, to get the real string. Signed-off-by: Leah Rowe --- script/trees | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'script') diff --git a/script/trees b/script/trees index 3eb9d054..8e53949b 100755 --- a/script/trees +++ b/script/trees @@ -176,7 +176,7 @@ configure_project() [ -z "$btype" ] || [ "${mode%config}" = "$mode" ] || return 1 [ -z "$mode" ] && build_dependencies - mdir="$PWD/config/submodule/$project" + mdir="`pwd`/config/submodule/$project" [ -n "$tree" ] && mdir="$mdir/$tree" [ -f "CHANGELOG" ] || check_project_hashes @@ -247,7 +247,7 @@ check_cross_compiler() x_ ./mk -f coreboot "${cbdir#src/coreboot/}" - export PATH="$PWD/$cbdir/util/crossgcc/xgcc/bin:$PATH" + export PATH="`pwd`/$cbdir/util/crossgcc/xgcc/bin:$PATH" export CROSS_COMPILE="${xarch% *}-" [ -n "$xlang" ] && export BUILD_LANGUAGES="$xlang" -- cgit v1.2.1