File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ via home-manager section.
121
121
Put the following line in your .envrc
122
122
123
123
``` bash
124
- source_url " https://raw.githubusercontent.com/nix-community/nix-direnv/1.2/direnvrc" " sha256-2SLi51C+LR48zKe7jzvz9ftETwWZcQVUR1oSYJslCZ0="
124
+ source_url " https://raw.githubusercontent.com/nix-community/nix-direnv/1.2.1 /direnvrc" " sha256-2SLi51C+LR48zKe7jzvz9ftETwWZcQVUR1oSYJslCZ0="
125
125
```
126
126
127
127
## Usage example
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -eu -o pipefail
4
+
5
+ SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " > /dev/null && pwd ) "
6
+ cd " $SCRIPT_DIR /.."
7
+
8
+ version=${1:- }
9
+ if [[ -z " $version " ]]; then
10
+ echo " USAGE: $0 version" 2> /dev/null
11
+ exit 1
12
+ fi
13
+
14
+ if [[ " $( git symbolic-ref --short HEAD) " != " master" ]]; then
15
+ echo " must be on master branch" 2> /dev/null
16
+ exit 1
17
+ fi
18
+
19
+ sed -i -e " s!nix-direnv/.*/direnvrc!nix-direnv/${version} /direnvrc!" README.md
20
+ git add README.md
21
+ git commit -m " bump version ${version} "
22
+ git tag -e " ${version} "
23
+
24
+ echo " now run 'git push --tags origin master'"
You can’t perform that action at this time.
0 commit comments