Skip to content

Commit

Permalink
Merge pull request #682 from Mara3l/master
Browse files Browse the repository at this point in the history
TRIVIAL: generate.sh fix
  • Loading branch information
hkad98 authored May 17, 2024
2 parents d4ceb09 + 96bdb8f commit ac3566a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ for branch in "${branches_to_process[@]}" ; do
else
# number of path segments to throw away by tar: content/en/x.y => 3
strip_count=3
src_section=docs
if git ls-tree -d "$branch" -- "content/en/docs" | grep -q "content/en/docs"; then
src_section=docs
else
src_section=latest
fi
fi
if [ "$target_section" == "$current_section" ] ; then
# copy the current docs to proper section
Expand Down

0 comments on commit ac3566a

Please sign in to comment.