paritybit.ca

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 040373942cecaefc2a8762a18aea093512253224
parent 03d18c10978e4d15e4e6dcf5acef3cdaf00fb5e6
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Sat,  8 Aug 2020 21:22:27 -0400

Fix unset variable causing images to never be optimized

Diffstat:
Mcompile | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/compile b/compile @@ -273,6 +273,7 @@ set_html_toc() } # Read and parse command line flags +resizeFactor="0" while test $# -gt 0; do case "$1" in -h|--help) @@ -339,7 +340,7 @@ for file in "$@"; do compile_md auto_upload elif [ "$fileExt" = "png" ] || [ "$fileExt" = "jpg" ] || [ "$fileExt" = "jpeg" ]; then - if [ -n "$resizeFactor" ]; then + if [ "$resizeFactor" -gt 0 ]; then fileName="$fileName-thumb" resize_img else