Updating pipeline to generate logs

This commit is contained in:
2023-01-16 15:42:42 -08:00
parent 4e8d321bfa
commit 13b5578574
4 changed files with 22 additions and 5 deletions

View File

@@ -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`