Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix(pre-commit): correct input redirection for /dev/tty and add OpenAPI generation command

Andras Bacsai41e874eb0505
diff --git a/hooks/pre-commit b/hooks/pre-commit
index 69a5a9d416..d083fdcbbc 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 </dev/tty
fi
# Get list of stashed PHP files
@@ -19,3 +19,5 @@ $(pwd)/vendor/bin/pint $files -q
if [ $? -eq 0 ]; then
git add $files
fi
+
+php artisan generate:openapi