From 7542188592a46252bc817b88db16a4c50aa1fcb8 Mon Sep 17 00:00:00 2001 From: fritz-hh Date: Wed, 27 Nov 2013 23:44:45 +0100 Subject: [PATCH] Removed bashism == does not exist in bourne shell --- src/ocrPage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ocrPage.sh b/src/ocrPage.sh index 94fba129..91cb3fd4 100644 --- a/src/ocrPage.sh +++ b/src/ocrPage.sh @@ -74,7 +74,7 @@ dpi=`echo "scale=0;$dpi/1" | bc` # round to the nearest integer # Identify if page image should be saved as ppm (color) or pgm (gray) ext="ppm" opt="" -if [ $colorspaceCurImg == "Gray" ]; then +if [ "$colorspaceCurImg" = "Gray" ]; then ext="pgm" opt="-gray" fi