mirror of
https://github.com/davegallant/nix-config
synced 2025-11-26 03:24:17 +00:00
Add stash to update-flash.sh
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
if ! git diff-index --quiet HEAD --; then
|
||||
git stash push -m "Auto-stash via update-flash.sh on $(date)"
|
||||
fi
|
||||
|
||||
git pull
|
||||
update_msg=$(nix flake update 2>&1 | grep -v 'warning:')
|
||||
just rebuild
|
||||
|
||||
Reference in New Issue
Block a user