From b7ce82f2bf9433e17f907d4cadab83a7faf95f0d Mon Sep 17 00:00:00 2001 From: overtrue Date: Mon, 13 Dec 2021 06:32:53 +0800 Subject: [PATCH] Fixed #116 --- entrypoint.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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