summaryrefslogtreecommitdiff
path: root/include/git.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-04-11 17:52:18 +0100
committerLeah Rowe <leah@libreboot.org>2025-04-11 17:52:18 +0100
commit0764c969a29b54166bb64e24e257f15a536a8be4 (patch)
tree7207da8611a2e6e0e81808b19e0a650ac64ce4ea /include/git.sh
parentf98b9b0110770f5381055fbaa20610130131df62 (diff)
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>
Diffstat (limited to 'include/git.sh')
-rw-r--r--include/git.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/git.sh b/include/git.sh
index 1933a4ec..31f8562d 100644
--- a/include/git.sh
+++ b/include/git.sh
@@ -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()