mirror of
https://github.com/ryantm/agenix.git
synced 2024-11-24 18:48:29 +03:00
8 lines
227 B
Bash
Executable file
8 lines
227 B
Bash
Executable file
#!/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)
|
|
sed -i "s/$1/$2/g" pkgs/agenix.nix
|
|
git add pkgs/agenix.nix
|
|
git commit -m "version $2"
|
|
exit 0
|