From f5892aff39e25d8248e6790dc99f92faf70fc581 Mon Sep 17 00:00:00 2001 From: rom4nik <46846000+rom4nik@users.noreply.github.com> Date: Thu, 9 Dec 2021 21:18:04 +0100 Subject: [PATCH] Fix convert_exitcode check --- src/main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.sh b/src/main.sh index 3b42b56..216922d 100755 --- a/src/main.sh +++ b/src/main.sh @@ -38,7 +38,7 @@ fi convert -flatten -density 400 "current.pdf" "current.png" convert_exitcode=$? # if convert fails -if [$convert_exitcode -ne 0]; then +if [ $convert_exitcode -ne 0 ]; then echo "Current PDF might be damaged, convert exited with code" $convert_exitcode rm "current.pdf" exit 1