Skip to content

Commit

Permalink
total rework of OVERLOAD_PROTECTION_ENCABULATOR
Browse files Browse the repository at this point in the history
much closer to TUNING_FLUX_CAPACITOR now
  • Loading branch information
Ryan P.C. McQuen committed Jun 5, 2015
1 parent e8403d8 commit ed0294b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions imgult
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,13 @@ GIFEXTENSIONS="gif"
SVGEXTENSIONS="svg svgz"

RUN_OVERLOAD_PROTECTION_ENCABULATOR() {
while [ `ps | wc -l` -gt 17 ]; do
wait
echo "*-_- OVERLOAD ENCABULATOR PROTECTION INITIATED -_-*"
while [ "`pgrep egrep`" ] || [ "`pgrep exiv2`" ] \
|| [ "`pgrep jpegtran`" ] || [ "`pgrep jpegoptim`" ] \
|| [ "`pgrep pngquant`" ] || [ "`pgrep optipng`" ] \
|| [ "`pgrep gifsicle`" ] || [ "`pgrep svgo`" ]; \
do
wait
echo "*-_- OVERLOAD ENCABULATOR PROTECTION INITIATED -_-*"
done
}

Expand Down

0 comments on commit ed0294b

Please sign in to comment.