Skip to content

Commit 3d575ef

Browse files
author
Junio C Hamano
committed
dodoc - create leading directory when installing
1 parent 626254d commit 3d575ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dodoc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ do
9090
it=$(expr "$path" : doc-$type-inst/'\(.*\)') || continue
9191
t="doc-${type}pages/$it"
9292
test -f "$t" && diff -q "$path" "$t" && continue
93-
93+
mkdir -p "$(dirname "$t")" &&
9494
echo ": $t" && rm -f "$t" && ln "$path" "$t" || exit
9595
( cd doc-${type}pages && git add "$it" )
9696
done || exit

0 commit comments

Comments
 (0)