Skip to content

Commit

Permalink
applied fix for #26
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMason committed Jun 19, 2013
1 parent 953aca7 commit 124ee85
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion bin/imageOptim
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,11 @@ function imageAlphaIsInstalled {

# (): -> "true" or "false"
function jpegMiniIsInstalled {
echo $(appIsInstalled $jpegMiniAppFileName $jpegMiniAppBundleId)
if [ "true" == $(appIsInstalled $jpegMiniAppFileName $jpegMiniAppBundleId) ] || [ "true" == $(appIsInstalled $jpegMiniAppFileName $jpegMiniAppRetailBundleId) ]; then
echo "true"
else
echo "false"
fi
}

# (): -> "true" or "false"
Expand Down
6 changes: 5 additions & 1 deletion src/shell/methods.sh
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,11 @@ function imageAlphaIsInstalled {

# (): -> "true" or "false"
function jpegMiniIsInstalled {
echo $(appIsInstalled $jpegMiniAppFileName $jpegMiniAppBundleId)
if [ "true" == $(appIsInstalled $jpegMiniAppFileName $jpegMiniAppBundleId) ] || [ "true" == $(appIsInstalled $jpegMiniAppFileName $jpegMiniAppRetailBundleId) ]; then
echo "true"
else
echo "false"
fi
}

# (): -> "true" or "false"
Expand Down

0 comments on commit 124ee85

Please sign in to comment.