From 7c282733fe9642bce5fcafbcc3286eb11efe74b2 Mon Sep 17 00:00:00 2001 From: Stanislau Kviatkouski <7-zete-7@users.noreply.github.com> Date: Thu, 14 Nov 2024 15:40:07 +0300 Subject: [PATCH] Do not change phpstan phar permissions when not needed Partial fixes #22 --- phpstan-action.bash | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/phpstan-action.bash b/phpstan-action.bash index 542e013..ebd17cd 100755 --- a/phpstan-action.bash +++ b/phpstan-action.bash @@ -25,7 +25,11 @@ else phar_path="${GITHUB_WORKSPACE}/$ACTION_PHPSTAN_PATH" fi -chmod +x "$phar_path" +if [ ! -x "$phar_path" ]; +then + chmod +x "$phar_path" +fi + command_string=("phpstan") if [ -n "$ACTION_COMMAND" ]