paritybit.ca

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

commit 4f45d11c9250cc9e68a7384654c0f761992bfd2f
parent 82291482acfb71042a886a96f360a13a1af18ce4
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Thu, 30 Dec 2021 00:33:16 -0500

*

Diffstat:
Mcompile | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/compile b/compile @@ -57,10 +57,6 @@ if [ ! -x "$(command -v lowdown)" ]; then echo "The program 'lowdown' is needed but was not found." exit 1 fi -if [ ! -x "$(command -v convert)" ]; then - echo "The program 'convert' from ImageMagick is needed but was not found." - exit 1 -fi # Define colours CLEAR="\033[0m" @@ -304,6 +300,10 @@ for file in "$@"; do compile_md auto_upload elif [ "$fileExt" = "png" ] || [ "$fileExt" = "jpg" ] || [ "$fileExt" = "jpeg" ]; then + if [ ! -x "$(command -v convert)" ]; then + echo "The program 'convert' from ImageMagick is needed but was not found." + exit 1 + fi if [ "$resizeFactor" -gt 0 ]; then fileName="$fileName-thumb" resize_img