Skip to content

Commit 96bdb8f

Browse files
committed
TRIVIAL: generate.sh fix
1 parent d4ceb09 commit 96bdb8f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

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)