mirror of
https://github.com/ryantm/agenix.git
synced 2024-12-24 00:25:18 +03:00
contrib: fix _incr_version script
This commit is contained in:
parent
d51af86302
commit
78d871220f
1 changed files with 2 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
grep -q "$1" pkgs/agenix.nix || (echo "Couldn't find version $1 in pkgs/agenix/nix" && exit 1)
|
||||
grep -q "$1" pkgs/agenix.nix || (echo "Couldn't find version $1 in pkgs/agenix.nix" && exit 1)
|
||||
sed -i "s/$1/$2/g" pkgs/agenix.nix
|
||||
git add pkgs/agenix/nix
|
||||
git add pkgs/agenix.nix
|
||||
git commit -m "version $2"
|
||||
exit 0
|
||||
|
|
Loading…
Reference in a new issue