Skip to content

Commit

Permalink
An alternative approach.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Jan 23, 2025
1 parent b57bb9e commit 0c949cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sh/ghGenerate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cd ghp-gz
tree -ifl | while IFS= read -r file; do
if [ -f "$file" ]; then
# Is a file
if [[ "$file" =~ "$COMPRESS_CRIT" ]]; then
if [ "$(echo "$file" | grep -E "$COMPRESS_CRIT")" != "" ]; then
zopfli --i1 "$file" && echo "Compressed \"${file}\" with Zopfli."
else
echo "File \"${file}\" cannot be compressed."
Expand All @@ -31,7 +31,7 @@ cd ghp-br
tree -ifl | while IFS= read -r file; do
if [ -f "$file" ]; then
# Is a file
if [[ "$file" =~ "$COMPRESS_CRIT" ]]; then
if [ "$(echo "$file" | grep -E "$COMPRESS_CRIT")" != "" ]; then
brotli -vq 11 "$file" && echo "Compressed \"${file}\" with Zopfli."
else
echo "File \"${file}\" cannot be compressed."
Expand Down

0 comments on commit 0c949cc

Please sign in to comment.