Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2924

Improve install-uninstall-check task scripts

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Trivial - P5 Trivial - P5
    • None
    • None
    • Build
    • None

    Description

      Based on a recommendation from samantha.ritter, it would be good to update .evergreen/install-uninstall-check.sh and .evergreen/install-uninstall-check-windows.cmd to replace repetitive blocks of code with something more concise and maintainable. The recommended structure is something like this:

      uninstall_files=(
         $INSTALL_DIR/share/mongo-c-driver/uninstall-bson.sh
         $INSTALL_DIR/share/mongo-c-driver/uninstall.sh
         ...
      )
       
      for file in "${uninstall_files[@]}"
      do
         if test -f $file; then
            echo "$file found!"
            exit 1
         else
            echo "$file check ok"
         fi
      done
      
      

      This originally was brought up in discussion of CDRIVER-2849.

      Attachments

        Activity

          People

            Unassigned Unassigned
            roberto.sanchez@mongodb.com Roberto Sanchez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: