Skip to content

Commit

Permalink
really close, maybe even done
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan P.C. McQuen committed Oct 16, 2014
1 parent 402e4b1 commit bf57edb
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions image-ultima-fy.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/bin/sh

## mozjpeg, jpegoptim and optipng must all be installed
## if you don't have them
## 1. shame on you!!
## 2. brew install jpegoptim mozjpeg optipng

## linux users will compile them ;^)

read -p "Would you like to BACKUP the original files? [y/N]: " response
case $response in
Expand All @@ -15,10 +20,8 @@ esac

if [ $BACKUPIMAGES = true ]; then
mkdir -pv original-image-files/
rsync -arE *.jpg original-image-files/
rsync -arE *.png original-image-files/
## rsync doesn't like syncing to a higher directory,
## so we just move stuff
find . -name "*.jpg" -type f -exec cp -R {} original-image-files/ \;
find . -name "*.png" -type f -exec cp -R {} original-image-files/ \;
mv original-image-files/ ../original-image-files/
fi

Expand All @@ -31,4 +34,3 @@ else
## add linux version here
echo "coming soon"
fi

0 comments on commit bf57edb

Please sign in to comment.