diff options
author | Leah Rowe <leah@libreboot.org> | 2025-05-17 09:46:54 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-05-17 09:46:54 +0100 |
commit | 6dea381614d01abb58a3534cc62c2346ba654beb (patch) | |
tree | f80c9df5c315f52c78b483a6dca458d926c23391 | |
parent | 6a2ed9428b7528da5c3953a89797d9bfb6d8f7f3 (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.sh | 2 |
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 ) || : |