Skip to content

Commit 7c28273

Browse files
authored
Do not change phpstan phar permissions when not needed
Partial fixes #22
1 parent 77ac183 commit 7c28273

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

phpstan-action.bash

+5-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ else
2525
phar_path="${GITHUB_WORKSPACE}/$ACTION_PHPSTAN_PATH"
2626
fi
2727

28-
chmod +x "$phar_path"
28+
if [ ! -x "$phar_path" ];
29+
then
30+
chmod +x "$phar_path"
31+
fi
32+
2933
command_string=("phpstan")
3034

3135
if [ -n "$ACTION_COMMAND" ]

0 commit comments

Comments
 (0)