[FLINK-21904] Sync standalone-job.sh with recent Flink 1.12.x changes
diff --git a/template/flink-distribution/bin/standalone-job.sh b/template/flink-distribution/bin/standalone-job.sh
index f7709e9..6e02d6c 100755
--- a/template/flink-distribution/bin/standalone-job.sh
+++ b/template/flink-distribution/bin/standalone-job.sh
@@ -40,7 +40,11 @@
 if [[ $STARTSTOP == "start" ]] || [[ $STARTSTOP == "start-foreground" ]]; then
     # Add cluster entry point specific JVM options
     export FLINK_ENV_JAVA_OPTS="${FLINK_ENV_JAVA_OPTS} ${FLINK_ENV_JAVA_OPTS_JM}"
-    parseJmJvmArgsAndExportLogs "${ARGS[@]}"
+    parseJmArgsAndExportLogs "${ARGS[@]}"
+
+    if [ ! -z "${DYNAMIC_PARAMETERS}" ]; then
+        ARGS+=(${DYNAMIC_PARAMETERS[@]})
+    fi
 fi
 
 if [[ $STARTSTOP == "start-foreground" ]]; then