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:
committed by
Rostislav Wolný
parent
ebe9a3cc2e
commit
d90f0ae533
@@ -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."
|
||||
|
Reference in New Issue
Block a user