frajul-auto-upgrade: restore flake.lock if update failed

This commit is contained in:
2025-09-09 21:47:35 +02:00
parent 8f1b0ade4d
commit 9735d3f0c0

View File

@@ -71,6 +71,7 @@ in {
echo "success" > "$LAST_STATUS_FILE"
else
echo "failure" > "$LAST_STATUS_FILE"
git -C "${cfg.flakePath}" restore flake.lock
fi
# Write full timestamp