File tree Expand file tree Collapse file tree 2 files changed +16
-9
lines changed Expand file tree Collapse file tree 2 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 1+ pages
Original file line number Diff line number Diff line change @@ -35,19 +35,25 @@ function build_translation_archives {
3535 rm -f " $target_directory /*"
3636
3737 for lang_dir in " $source_directory " /pages* ; do
38- if [ -d " $lang_dir " ]; then
39- local lang=$( basename " $lang_dir " )
40- local archive_name=" tldr-$lang .zip"
38+ # Skip symlinks (pages.en) and things that are not directories
39+ if [ ! -d " $lang_dir " ] || [ -h " $lang_dir " ]; then
40+ continue
41+ fi
4142
42- # Create the zip archive
43+ local lang=$( basename " $lang_dir " )
44+ local archive_name=" tldr-$lang .zip"
4345
44- cd " $lang_dir "
45- zip -q -r " $target_directory /$archive_name " .
46- zip -q -j " $target_directory /$archive_name " " $source_directory /LICENSE.md"
46+ # Create the zip archive
4747
48- echo " Pages archive of $archive_name successfully created."
49- fi
48+ cd " $lang_dir "
49+ zip -q -r " $target_directory /$archive_name " .
50+ zip -q -j " $target_directory /$archive_name " " $source_directory /LICENSE.md"
51+
52+ echo " Pages archive of $archive_name successfully created."
5053 done
54+
55+ cd " $target_directory "
56+ ln -s tldr-pages.zip tldr-pages.en.zip
5157}
5258
5359# ##################################
You can’t perform that action at this time.
0 commit comments