Skip to content

Commit

Permalink
properly delete obsolete gz files
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed May 30, 2024
1 parent bbd4612 commit 1ac7455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flarum-asset-compress
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ shopt -s extglob nullglob

cd /opt/flarum/public/assets

find -name '*.gz' -o -name '*.br' -delete
find \( -name '*.gz' -o -name '*.br' \) -delete
for f in *.*(css|js|js.map); do
brotli $f -o $f.br.tmp
mv $f.br.tmp $f.br
Expand Down

0 comments on commit 1ac7455

Please sign in to comment.