summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@nullring.xyz>2026-03-04 02:03:14 -0800
committerPreston Pan <ret2pop@nullring.xyz>2026-03-04 02:03:14 -0800
commitc2d9c8f7801e77f124cc55e4a58073aa6bb34e01 (patch)
tree3c2757c16a3b810596cc9e19be0d5cc9a60cfe85 /flake.nix
parentd6d3ae91b354634462c916c706fd642a73ef6e57 (diff)
make git hooks not abortable
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 4041f7a..1b88f90 100644
--- a/flake.nix
+++ b/flake.nix
@@ -30,6 +30,7 @@
description = "Ensure website can build, and tests links";
stages = [ "post-merge" ];
entry = "${pkgs.writeShellScript "website-check" ''
+trap 'echo "Interrupted!"; exit 1' INT
BRANCH=$(git branch --show-current)
if [ "$BRANCH" != "main" ]; then
exit 0