Skip to content

Commit ac3566a

Browse files
authored
Merge pull request #682 from Mara3l/master
TRIVIAL: generate.sh fix
2 parents d4ceb09 + 96bdb8f commit ac3566a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/generate.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@ for branch in "${branches_to_process[@]}" ; do
7373
else
7474
# number of path segments to throw away by tar: content/en/x.y => 3
7575
strip_count=3
76-
src_section=docs
76+
if git ls-tree -d "$branch" -- "content/en/docs" | grep -q "content/en/docs"; then
77+
src_section=docs
78+
else
79+
src_section=latest
80+
fi
7781
fi
7882
if [ "$target_section" == "$current_section" ] ; then
7983
# copy the current docs to proper section

0 commit comments

Comments
 (0)