From 0b66b58fa8bc66d6745fe90e0d6d162d6897a039 Mon Sep 17 00:00:00 2001 From: Ryan L McIntyre Date: Sat, 18 Jan 2020 21:18:14 -0800 Subject: [PATCH] Use the most optimal compression level of zip just in case --- bin/scripts/archive-fonts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/scripts/archive-fonts.sh b/bin/scripts/archive-fonts.sh index 59d230178..ba7899237 100755 --- a/bin/scripts/archive-fonts.sh +++ b/bin/scripts/archive-fonts.sh @@ -45,12 +45,12 @@ do [[ -d "$outputdir" ]] || mkdir -p "$outputdir" # -ic (ignore case not working) - zip "$outputdir/$basename" -rj "$searchdir" -i '*.[o,t]tf' -i '*.[O,T]TF' + zip -9 "$outputdir/$basename" -rj "$searchdir" -i '*.[o,t]tf' -i '*.[O,T]TF' zipStatus=$? if [ "$zipStatus" != "0" ] then echo "$LINE_PREFIX Could not create archive with the path junked (-j option) - likely same font names for different paths, zip status: $zipStatus" echo "$LINE_PREFIX Retrying with full path" - zip "$outputdir/$basename" -r "$searchdir" -i '*.[o,t]tf' -i '*.[O,T]TF' + zip -9 "$outputdir/$basename" -r "$searchdir" -i '*.[o,t]tf' -i '*.[O,T]TF' fi; done