From e1aa65dac83ffa564e8b8a665aaa34bf0ec3aa71 Mon Sep 17 00:00:00 2001 From: Chris Simpkins Date: Mon, 11 Apr 2016 17:17:45 -0400 Subject: [PATCH] build v0.9.0 dev-2 --- bin/Crunch.app/Contents/Info.plist | 4 ++-- bin/Crunch.app/Contents/Resources/script | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bin/Crunch.app/Contents/Info.plist b/bin/Crunch.app/Contents/Info.plist index 010481c..fd1e1bf 100644 --- a/bin/Crunch.app/Contents/Info.plist +++ b/bin/Crunch.app/Contents/Info.plist @@ -31,11 +31,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 0.9.0 dev-1 + 0.9.0 dev-2 CFBundleSignature ???? CFBundleVersion - 0.9.0 dev-1 + 0.9.0 dev-2 LSMinimumSystemVersion 10.7.0 LSUIElement diff --git a/bin/Crunch.app/Contents/Resources/script b/bin/Crunch.app/Contents/Resources/script index a079915..14ed00e 100755 --- a/bin/Crunch.app/Contents/Resources/script +++ b/bin/Crunch.app/Contents/Resources/script @@ -3,7 +3,7 @@ chug_title=" ______ __ | |.----.--.--.-----.----.| |--. | ---|| _| | | | __|| | -|______||__| |_____|__|__|____||__|__| v0.9.0 dev-1 +|______||__| |_____|__|__|____||__|__| v0.9.0 dev-2 " # Message on application open (no arguments passed to script on initial open) @@ -24,15 +24,15 @@ fi for imagepath in "$@" do - file_extension=${imagepath##*.} - if [[ $file_extension = "png" ]]; then + file_extension="${imagepath##*.}" + if [[ "$file_extension" = "png" ]]; then echo "• • • Crunching $imagepath...\n" echo " \n" # get the pre compression size of the image file pre_size=$(stat -f %z "$imagepath") printf "Original size (kB): \t%.3f\n" $(bc -l <<< "$pre_size/1000") - working_imagepath="${imagepath%%.*}-crunch.png" + working_imagepath="${imagepath%.png}-crunch.png" # pngquant run on the file echo " \n" @@ -63,7 +63,7 @@ do if [[ -f "$working_imagepath" ]]; then echo " " >/dev/null else - sleep 2 # pause for two seconds for file write + sleep 2 # pause for two seconds if [[ -f "$working_imagepath" ]]; then echo " " >/dev/null else