Skip to content

error in the create_istio_release.sh script #598

@yskopets

Description

@yskopets

Summary

  • The output of create-test-images step contains the following error message:
    ./tetrateci/create_istio_release.sh: line 83: [: =~: binary operator expected
  • the line in question does some fips-related check
    # fips go versions are like 1.14.12b5, extra checking to not miss anything
    if [ ${TAG} =~ "fips" ]; then 
        [[ $BUILD_GO_VERSION =~ 1.[0-9]+.[0-9]+[a-z][0-9]$ ]] || exit 1
    fi  
  • shellcheck reports the following error for this line:
    In ./tetrateci/create_istio_release.sh line 83:
    if [ ${TAG} =~ "fips" ]; then
                ^-- SC2074: Can't use =~ in [ ]. Use [[..]] instead.  

Examples

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions