Skip to content

Commit

Permalink
Fix convert_exitcode check
Browse files Browse the repository at this point in the history
  • Loading branch information
rom4nik committed Dec 9, 2021
1 parent 7d53f30 commit f5892af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f5892af

Please sign in to comment.