Description: Fix bashism, pattern match only works with bash as /bin/sh.
Author: Bas Couwenberg <sebastic@debian.org>

--- a/linux/tested/usr/bin/josm
+++ b/linux/tested/usr/bin/josm
@@ -46,7 +46,7 @@ fi
 
 if [ "$JAVACMD" ]; then
     echo "Using $JAVACMD to execute josm." || true
-    if [[ $JAVACMD == *"java-9"* ]]; then
+    if [ "`expr match \"${JAVACMD}\" 'java-9'`" != "0" ]; then
         JAVA_OPTS="--add-modules java.se.ee $JAVA_OPTS"
     fi
     set +e
--- a/linux/latest/usr/bin/josm-latest
+++ b/linux/latest/usr/bin/josm-latest
@@ -46,7 +46,7 @@ fi
 
 if [ "$JAVACMD" ]; then
     echo "Using $JAVACMD to execute josm-latest." || true
-    if [[ $JAVACMD == *"java-9"* ]]; then
+    if [ "`expr match \"${JAVACMD}\" 'java-9'`" != "0" ]; then
         JAVA_OPTS="--add-modules java.se.ee $JAVA_OPTS"
     fi
     set +e
