• Mayank Mittal's avatar
    Fixes conda env name matching in orbit.sh (#391) · 1e708cbd
    Mayank Mittal authored
    # Description
    
    Previously, if you had two environments named `orbit` and `orbit_2024`.
    If you delete the environment `orbit` to rename it, the grep search
    would try to match `orbit_2024` with `orbit` and say the environment
    exists.
    
    This MR fixes the grep matching in `orbit.sh` to return success only if
    the entire word matches.
    
    ## Type of change
    
    - Bug fix (non-breaking change which fixes an issue)
    
    ## Checklist
    
    - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
    `./orbit.sh --format`
    - [ ] I have made corresponding changes to the documentation
    - [x] My changes generate no new warnings
    - [ ] I have added tests that prove my fix is effective or that my
    feature works
    - [ ] I have run all the tests with `./orbit.sh --test` and they pass
    - [ ] I have updated the changelog and the corresponding version in the
    extension's `config/extension.toml` file
    - [x] I have added my name to the `CONTRIBUTORS.md` or my name already
    exists there
    1e708cbd
orbit.sh 13.4 KB