diff --git a/entrypoint.sh b/entrypoint.sh index c11687d3..0aada501 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,5 +1,9 @@ #!/bin/sh -l -set -euxo pipefail +set -ex -sh -c "/root/.composer/vendor/bin/phplint $*" \ No newline at end of file +if [ ! -z "$INPUT_PATH" ]; then + /root/.composer/vendor/bin/phplint $INPUT_PATH $INPUT_OPTIONS +else + sh -c "/root/.composer/vendor/bin/phplint $*" +fi \ No newline at end of file