Skip to content

Commit

Permalink
Fix pngquant not working and version output
Browse files Browse the repository at this point in the history
  • Loading branch information
pmor committed Nov 2, 2020
1 parent fb47ba6 commit 08ada84
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ WORKING_DIR=$(pwd)
VENDOR_DIR="vendor/image-optim"

indent() {
sed -u 's/^/ /'
sed 's/^/ /'
}

echo "-----> Adding Item-Optim binaries"
Expand All @@ -20,8 +20,6 @@ mkdir -p ${BUILD_DIR}/${VENDOR_DIR}

cp -v * ${BUILD_DIR}/${VENDOR_DIR} | indent

export PATH="$PATH:$HOME/vendor/image-optim"

cd $WORKING_DIR

echo "-----> Adding image-optim binaries symlink to make them available in next buildpacks"
Expand Down Expand Up @@ -58,21 +56,21 @@ cd $WORKING_DIR

echo "-----> Image-Optim binaries version"

advpng -V | head -1 | indent
/tmp/codon/vendor/bin/advpng -V | head -1 | indent

gifsicle --version | head -1 | indent
/tmp/codon/vendor/bin/gifsicle --version | head -1 | indent

jhead -V | head -1 | indent
/tmp/codon/vendor/bin/jhead -V | head -1 | indent

echo -n "jpeg-recompress ";jpeg-recompress -V | head -1 | indent
echo -n "jpeg-recompress ";/tmp/codon/vendor/bin/jpeg-recompress -V | head -1 | indent

jpegoptim -V | head -1 | indent
/tmp/codon/vendor/bin/jpegoptim -V | head -1 | indent

jpegtran -V /dev/null 2>&1 | head -1 | indent
/tmp/codon/vendor/bin/jpegtran -V /dev/null 2>&1 | head -1 | indent

optipng -V | head -1 | indent
/tmp/codon/vendor/bin/optipng -V | head -1 | indent

pngcrush -version | sed -n 2p | indent
/tmp/codon/vendor/bin/pngcrush -version 2>&1 | head -1 | indent

echo -n "pngquant ";pngquant -V | head -1 | indent

Expand Down
Empty file modified vendor/image-optim/pngquant
100644 → 100755
Empty file.

0 comments on commit 08ada84

Please sign in to comment.