Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-3541

Use bash instead of sh in evergreen scripts

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.4
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Use bash instead of sh in evergreen scripts. There are still a few places where "sh" is used:

      $ git grep ' sh '      
      .evergreen/perf.yml:108:          MONGODB_VERSION=${VERSION} TOPOLOGY=${TOPOLOGY} AUTH=${AUTH} SSL=${SSL} STORAGE_ENGINE=${STORAGE_ENGINE} sh ${DRIVERS_TOOLS}/.evergreen/run-orchestration.sh
      .evergreen/perf.yml:119:          sh ${DRIVERS_TOOLS}/.evergreen/stop-orchestration.sh
      .evergreen/perf.yml:128:          PROJECT_DIRECTORY=${PROJECT_DIRECTORY} sh ${PROJECT_DIRECTORY}/.evergreen/run-perf-tests.sh
      .evergreen/perf.yml:185:          [ -f "$file" ] && sh $file || echo "$file not available, skipping"

      We should also consider adding "shell: bash" to all the 
      shell.exec commands.

      This is motivated by https://github.com/mongodb-labs/drivers-evergreen-tools/pull/257 and other recent changed which are standardizing (and now requiring) on bash rather than bourne shell for drivers-evergreen-tools 

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: