[ https://issues.apache.org/jira/browse/FLINK-29306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17605375#comment-17605375 ]
Rudi Kershaw commented on FLINK-29306: -------------------------------------- [~LiuZeshan], this is a good spot. I've obviously not tested this adequately when I made the change. I've checked over the change and added my approval to the pull request. > fail to check multiple flink-dist*.jar for config.sh > ---------------------------------------------------- > > Key: FLINK-29306 > URL: https://issues.apache.org/jira/browse/FLINK-29306 > Project: Flink > Issue Type: Bug > Components: Client / Job Submission > Affects Versions: 1.16.0 > Reporter: LiuZeshan > Priority: Minor > Labels: pull-request-available > > The following shell command always make FLINK_DIST_COUNT=1 > ([config.sh|https://github.com/apache/flink/blob/db98322472cb65ca0358ec1cce7f9ef737198189/flink-dist/src/main/flink-bin/bin/config.sh#L35]) > {code:java} > FLINK_DIST_COUNT="$(echo "$FLINK_DIST" | wc -l)" {code} > and the following condition will always be false, so fail to check multiple > flink-dist*.jar。 > {code:java} > [[ "$FLINK_DIST_COUNT" -gt 1 ]] {code} > examples: > {code:java} > # > FLINK_DIST=":/Users/lzs/.data/github/flink/flink-dist/target/flink-1.17-SNAPSHOT-bin/flink-1.17-SNAPSHOT/lib/flink-dist-1.17-SNAPSHOT.jar:/Users/lzs/.data/github/flink/flink-dist/target/flink-1.17-SNAPSHOT-bin/flink-1.17-SNAPSHOT/lib/flink-dist-1.17-xxx.jar" > # echo "$FLINK_DIST" | wc -l > 1{code} -- This message was sent by Atlassian Jira (v8.20.10#820010)