summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-05-17 09:46:54 +0100
committerLeah Rowe <leah@libreboot.org>2025-05-17 09:46:54 +0100
commit6dea381614d01abb58a3534cc62c2346ba654beb (patch)
treef80c9df5c315f52c78b483a6dca458d926c23391
parent6a2ed9428b7528da5c3953a89797d9bfb6d8f7f3 (diff)
get.sh: fix bad mkdir command
this is the mkdir call that createsn the directory where a cached git repository is moved to, during creation. Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--include/get.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/get.sh b/include/get.sh
index 4bcccceb..c9bf840d 100644
--- a/include/get.sh
+++ b/include/get.sh
@@ -139,7 +139,7 @@ try_git()
x_ rm -Rf "$tmpgitcache"
[ -d "$gitdest" ] || ( x_ git clone "$2" "$tmpgitcache" ) || return 1
- [ -d "$gitdest" ] || x_ mkdir -p "${gitdest##*/}"
+ [ -d "$gitdest" ] || x_ mkdir -p "${gitdest%/*}"
[ -d "$gitdest" ] || x_ mv "$tmpgitcache" "$gitdest"
( x_ git -C "$gitdest" remote add main "$4" 2>/dev/null ) || :