Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-25041

E2E tar ball cache fails without error message if target directory not specified

    XMLWordPrintableJSON

Details

    Description

      We want to verify if the variable has been set.

      if [ -z "$E2E_TARBALL_CACHE" ] ; then
          echo "You have to export the E2E Tarball Cache as E2E_TARBALL_CACHE"
          exit 1
      fi 

      but the shown code immediately fails with an `unbound variable` error if the variable is not set and it does not evaluate the branch.

       

      We should change it to something like this

      if [ "${E2E_TARBALL_CACHE+x}" == x ] ; then
          echo "You have to export the E2E Tarball Cache as E2E_TARBALL_CACHE" 
          exit 1
      fi  

       

      Attachments

        Activity

          People

            autophagy Mika Naylor
            fpaul Fabian Paul
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: