9 lines
300 B
Bash
9 lines
300 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Keep commits possible when local DB is offline.
|
|
if ! php artisan version:fetch >/dev/null 2>&1; then
|
|
echo "pre-commit: skipped 'php artisan version:fetch' (database unreachable)." >&2
|
|
echo "pre-commit: start MySQL and run it manually when needed." >&2
|
|
fi
|