Skip to content

Commit

Permalink
Use the most optimal compression level of zip just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanoasis committed Jan 19, 2020
1 parent 2cb0488 commit 0b66b58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/scripts/archive-fonts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0b66b58

Please sign in to comment.