Add git fsck to verification.
This commit is contained in:
parent
aa0249b3e5
commit
d20cc08036
1
Makefile
1
Makefile
|
@ -66,6 +66,7 @@ update:
|
||||||
|
|
||||||
verify:
|
verify:
|
||||||
git verify-commit HEAD
|
git verify-commit HEAD
|
||||||
|
git fsck
|
||||||
|
|
||||||
vm:
|
vm:
|
||||||
nix run $(options) $(flake)#nixosConfigurations.$(hostname).config.system.build.vm
|
nix run $(options) $(flake)#nixosConfigurations.$(hostname).config.system.build.vm
|
||||||
|
|
|
@ -35,7 +35,7 @@ in {
|
||||||
rm -rf ./nixos
|
rm -rf ./nixos
|
||||||
git clone --depth=1 --single-branch --branch=main ${const.url} ./nixos
|
git clone --depth=1 --single-branch --branch=main ${const.url} ./nixos
|
||||||
pushd ./nixos
|
pushd ./nixos
|
||||||
git verify-commit HEAD || {
|
git verify-commit HEAD && git fsck || {
|
||||||
echo "Verification failed."
|
echo "Verification failed."
|
||||||
exit 1
|
exit 1
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue