Github user alkagin commented on a diff in the pull request:

    https://github.com/apache/flink/pull/2149#discussion_r68743480
  
    --- Diff: flink-dist/src/main/flink-bin/bin/flink ---
    @@ -17,20 +17,41 @@
     # limitations under the License.
     
################################################################################
     
    -target="$0"
     # For the case, the executable has been directly symlinked, figure out
     # the correct bin path by following its symlink up to an upper bound.
     # Note: we can't use the readlink utility here if we want to be POSIX
     # compatible.
    -iteration=0
    -while [ -L "$target" ]; do
    -    if [ "$iteration" -gt 100 ]; then
    -        echo "Cannot resolve path: You have a cyclic symlink in $target."
    +followSymLink() {
    +    local iteration=0
    +    local bar=$1
    +    while [ -L "$bar" ]; do
    +        if [ "$iteration" -gt 100 ]; then
    +            echo "Cannot resolve path: You have a cyclic symlink in $bar."
    +            break
    +        fi
    +        ls=`ls -ld -- "$bar"`
    +        bar=`expr "$ls" : '.* -> \(.*\)$'`
    +        iteration=$((iteration + 1))
    +    done
    +
    +    echo "$bar"
    +}
    +
    +target=$(followSymLink "$0")
    +
    +#Search --configDir into the parameters and set it as FLINK_CONF_DIR
    +args=("$@")
    +for i in "${!args[@]}"; do
    +    if [ ${args[$i]} = "--configDir" ]; then
    --- End diff --
    
    There is already one, we need two? 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to