bump version 2.2.0

This commit is contained in:
Jörg Thalheim 2022-11-20 23:36:42 +01:00
parent daa1cbbe23
commit 5d735de138
2 changed files with 3 additions and 3 deletions

View file

@ -89,8 +89,8 @@ keep-outputs = true
Put the following lines in your `.envrc`: Put the following lines in your `.envrc`:
```bash ```bash
if ! has nix_direnv_version || ! nix_direnv_version 2.1.1; then if ! has nix_direnv_version || ! nix_direnv_version 2.2.0; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.1.1/direnvrc" "sha256-b6qJ4r34rbE23yWjMqbmu3ia2z4b2wIlZUksBke/ol0=" source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.2.0/direnvrc" "sha256-b6qJ4r34rbE23yWjMqbmu3ia2z4b2wIlZUksBke/ol0="
fi fi
``` ```

View file

@ -43,7 +43,7 @@ _nix_direnv_preflight () {
# #
# Checks that the nix-direnv version is at least as old as <version_at_least>. # Checks that the nix-direnv version is at least as old as <version_at_least>.
nix_direnv_version() { nix_direnv_version() {
declare major='2' minor='1' patch='0' # UPDATE(nix-direnv version) declare major='2' minor='2' patch='0' # UPDATE(nix-direnv version)
[[ $1 =~ ^([^+-.]*)(\.?)([^+-.]*)(\.?)([^+-]*)(-?)([^+]*)(\+?)(.*)$ ]] [[ $1 =~ ^([^+-.]*)(\.?)([^+-.]*)(\.?)([^+-]*)(-?)([^+]*)(\+?)(.*)$ ]]
declare -a ver; ver=("${BASH_REMATCH[@]:1}") declare -a ver; ver=("${BASH_REMATCH[@]:1}")