diff --git a/src/main/resources/interpreter-helpers/bash.sh b/src/main/resources/interpreter-helpers/bash.sh index 24393bf84..39e91e487 100644 --- a/src/main/resources/interpreter-helpers/bash.sh +++ b/src/main/resources/interpreter-helpers/bash.sh @@ -47,6 +47,8 @@ if [[ "$(jdk_version)" -gt "8" ]]; then # Read the required modules from the jar itself, so that each jar can have different dependencies, without requiring # a re-install. MODULES=$(unzip -p "%%LOCATION%%" interpreter-helpers/modules) + # Ensure that the modules file will work even if it has windows line endings + MODULES=$(echo "$MODULES" | sed 's/\r$//g') MPATH=$(echo "$MODULES" | sed 's/\(.*\)/--add-opens \1=ALL-UNNAMED/' | tr '\n' ' ') else MPATH=""