Files
nix-config/nix-flake-update.sh
2024-02-23 07:42:08 -05:00

11 lines
200 B
Bash
Executable File

#!/usr/bin/env bash
git pull
update_msg=$(nix flake update 2>&1 | grep -v 'warning:')
make
git add .
git commit -S -m "nix flake update: $(TZ=UTC date '+%Y-%m-%d %H:%M:%S %Z')
$update_msg"
git push