From 6dea381614d01abb58a3534cc62c2346ba654beb Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 17 May 2025 09:46:54 +0100 Subject: 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 --- include/get.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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 ) || : -- cgit v1.2.1