File tree 2 files changed +16
-9
lines changed
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 {
35
35
rm -f " $target_directory /*"
36
36
37
37
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
41
42
42
- # Create the zip archive
43
+ local lang=$( basename " $lang_dir " )
44
+ local archive_name=" tldr-$lang .zip"
43
45
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
47
47
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."
50
53
done
54
+
55
+ cd " $target_directory "
56
+ ln -s tldr-pages.zip tldr-pages.en.zip
51
57
}
52
58
53
59
# ##################################
You can’t perform that action at this time.
0 commit comments