Add git fsck to verification.

This commit is contained in:
Dmitry Voronin 2024-09-30 05:39:06 +03:00
parent aa0249b3e5
commit d20cc08036
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
2 changed files with 2 additions and 1 deletions

View file

@ -66,6 +66,7 @@ update:
verify:
git verify-commit HEAD
git fsck
vm:
nix run $(options) $(flake)#nixosConfigurations.$(hostname).config.system.build.vm

View file

@ -35,7 +35,7 @@ in {
rm -rf ./nixos
git clone --depth=1 --single-branch --branch=main ${const.url} ./nixos
pushd ./nixos
git verify-commit HEAD || {
git verify-commit HEAD && git fsck || {
echo "Verification failed."
exit 1
};