Skip to content

Commit

Permalink
add sort to mac os jpegtran find
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan P.C. McQuen <[email protected]>
  • Loading branch information
Ryan P.C. McQuen committed Jul 10, 2015
1 parent 672f942 commit 9d544a4
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 @@ -48,7 +48,7 @@ RUN_OVERLOAD_PROTECTION_ENCABULATOR() {

if [ -z "$JPEGTRAN" ]; then
if [ `uname` = "Darwin" ]; then
MACOSJPEGTRAN=`find /usr/local/Cellar/mozjpeg -name jpegtran | tail -1 | cut -d/ -f1-7`
MACOSJPEGTRAN=`find /usr/local/Cellar/mozjpeg -name jpegtran | sort | tail -1 | cut -d/ -f1-7`
fi
export PATH=$MACOSJPEGTRAN:/opt/libmozjpeg/bin:/opt/mozjpeg/bin:$PATH
JPEGTRAN="$(which jpegtran)"
Expand Down

0 comments on commit 9d544a4

Please sign in to comment.