Skip to content

Commit d8f8887

Browse files
author
Greg Bowler
authored
Merge pull request #28 from 7-zete-7/patch-1
Do not change phpstan phar permissions when not needed
2 parents e826ef6 + 7c28273 commit d8f8887

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)