aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlibjpeg.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/libjpeg.sh b/libjpeg.sh
index 442458d..90bbec1 100755
--- a/libjpeg.sh
+++ b/libjpeg.sh
@@ -14,7 +14,9 @@ set -e # Abort on errors
# Build
################################################################################
-if [ -z "${LIBJPEG_DIR}" -o "${LIBJPEG_DIR}" = 'BUILD' ]; then
+if [ -z "${LIBJPEG_DIR}" \
+ -o "$(echo "${LIBJPEG_DIR}" | tr '[a-z]' '[A-Z]')" = 'BUILD' ]
+then
echo "BEGIN MESSAGE"
echo "Building libjpeg..."
echo "END MESSAGE"