Fix unresolved command in lint-staged-php for Linux

The 'source' command is not available in the default sh shell on Linux. The source command is specific to bash and other compatible shells. On Linux, the default sh shell is often dash, which does not support source. It seem to work on macOS because the default shell there is bash.

The . (dot) command is POSIX-compliant and works in both sh and bash.
This commit is contained in:
Mustapha Hadid
2024-09-05 17:36:36 +08:00
committed by Rostislav Wolný
parent ebe9a3cc2e
commit d90f0ae533

View File

@@ -2,7 +2,7 @@
set -e
source $PWD/.env
. $PWD/.env
if [ "$MP_GIT_HOOKS_ENABLE" != "true" ]; then
echo "MP_GIT_HOOKS_ENABLE is not set to 'true'. Skipping lint-staged-php."