From 41e874eb05059a9dc9379dbd9db6c9a3d2bc522d Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Sun, 13 Apr 2025 15:49:27 +0200 Subject: [PATCH] fix(pre-commit): correct input redirection for /dev/tty and add OpenAPI generation command --- hooks/pre-commit | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hooks/pre-commit b/hooks/pre-commit index 69a5a9d41..d083fdcbb 100644 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -1,7 +1,7 @@ #!/bin/sh # Detect whether /dev/tty is available & functional if sh -c ": >/dev/tty" >/dev/null 2>/dev/null; then - exec < /dev/tty + exec