diff --git a/src/main/resources/com/typesafe/sbt/packager/archetypes/bash-template b/src/main/resources/com/typesafe/sbt/packager/archetypes/bash-template index e69ea7bda..8f8048085 100644 --- a/src/main/resources/com/typesafe/sbt/packager/archetypes/bash-template +++ b/src/main/resources/com/typesafe/sbt/packager/archetypes/bash-template @@ -167,7 +167,7 @@ get_mem_opts () { [[ "${java_args[@]}" == *-XX:ReservedCodeCacheSize* ]]; then echo "" - elif [[ !$no_java_version_check ]] && [[ java_version > "1.8" ]]; then + elif [[ !$no_java_version_check ]] && [[ "$java_version" > "1.8" ]]; then echo "-Xms${mem}m -Xmx${mem}m -XX:ReservedCodeCacheSize=${codecache}m" else echo "-Xms${mem}m -Xmx${mem}m -XX:MaxPermSize=${perm}m -XX:ReservedCodeCacheSize=${codecache}m"