Updating pipeline to generate logs
This commit is contained in:
@@ -1,7 +1,22 @@
|
||||
#!/bin/sh
|
||||
set -x
|
||||
set -e
|
||||
|
||||
# Build to optimize images and not much else if im being honest
|
||||
usage() {
|
||||
cat <<EOF
|
||||
Summary:
|
||||
Will compress and resize images so that they don't take up too much space
|
||||
and are easier on traffic usage
|
||||
Usage:
|
||||
optimize.sh [files to optimize...]
|
||||
EOF
|
||||
}
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
usage
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p output/
|
||||
for f in "$@"; do
|
||||
convert -resize 900x $f output/`basename $f`
|
||||
|
||||
Reference in New Issue
Block a user