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 <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-04-11 17:52:18 +01:00
parent f98b9b0110
commit 0764c969a2
5 changed files with 22 additions and 22 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ fetch_targets()
e "src/$project/$tree" d && return 0
printf "Creating %s tree %s\n" "$project" "$tree"
git_prep "$loc" "$loc" "$PWD/$configdir/$tree/patches" \
git_prep "$loc" "$loc" "`pwd`/$configdir/$tree/patches" \
"src/$project/$tree" u
nuke "$project/$tree" "$project/$tree"
}
@@ -43,7 +43,7 @@ clone_project()
printf "Downloading project '%s' to '%s'\n" "$project" "$loc"
e "$loc" d missing && remkdir "${tmpgit%/*}" && git_prep \
"$url" "$bkup_url" "$PWD/config/$project/patches" "$loc"; :
"$url" "$bkup_url" "`pwd`/config/$project/patches" "$loc"; :
}
git_prep()