-
-
Save iruslanalexan/a395ac21560a8aee8882b9dcf5c2d2e4 to your computer and use it in GitHub Desktop.
bash script for bitrix optim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd $HOME/public_html/local/templates/oknapolis | |
gulp | |
echo "upload optimize" | |
cd $HOME/public_html/upload/ | |
find -type f -iname "*.jpg" -exec jpegoptim --strip-all --all-progressive -pm85 {} \; | |
echo "build optimize" | |
cd $HOME/public_html/local/templates/oknapolis/build/images/ | |
find -type f -iname "*.jpg" -exec jpegoptim --strip-all --all-progressive -pm85 {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment