2022-09-25 23:14:37 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
|
2022-09-25 23:22:15 +02:00
|
|
|
grep -q "$1" pkgs/agenix.nix || (echo "Couldn't find version $1 in pkgs/agenix.nix" && exit 1)
|
2022-09-25 23:14:37 +02:00
|
|
|
sed -i "s/$1/$2/g" pkgs/agenix.nix
|
2022-09-25 23:22:15 +02:00
|
|
|
git add pkgs/agenix.nix
|
2022-09-25 23:14:37 +02:00
|
|
|
git commit -m "version $2"
|
|
|
|
exit 0
|