fix(pre-commit): correct input redirection for /dev/tty and add OpenAPI generation command
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Detect whether /dev/tty is available & functional
|
# Detect whether /dev/tty is available & functional
|
||||||
if sh -c ": >/dev/tty" >/dev/null 2>/dev/null; then
|
if sh -c ": >/dev/tty" >/dev/null 2>/dev/null; then
|
||||||
exec < /dev/tty
|
exec </dev/tty
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Get list of stashed PHP files
|
# Get list of stashed PHP files
|
||||||
@@ -19,3 +19,5 @@ $(pwd)/vendor/bin/pint $files -q
|
|||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
git add $files
|
git add $files
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
php artisan generate:openapi
|
||||||
|
Reference in New Issue
Block a user