Skip to content

Commit

Permalink
sleep is better than wait if comp is really fast
Browse files Browse the repository at this point in the history
otherwise it may not have time to finish
  • Loading branch information
Ryan P.C. McQuen committed Jan 20, 2015
1 parent 324d643 commit cc03340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgult
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ while [ -e imgult-files.txt ]; do
|| [ "`pgrep jpegtran`" ] || [ "`pgrep jpegoptim`" ] \
|| [ "`pgrep pngquant`" ] || [ "`pgrep optipng`" ] \
|| [ "`pgrep gifsicle`" ] || [ "`pgrep svgo`" ]; then
wait
sleep 1
echo "... imgulting ..."
else
rm -v imgult-files.txt
Expand Down

0 comments on commit cc03340

Please sign in to comment.