Skip to content

Commit 60ab299

Browse files
committed
fix symlinking custom source dir
1 parent f72bd6b commit 60ab299

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

entrypoint.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
# if path to analyze is provided we symlink it to /source so the default phpstan config works
44
if [ ! -z "$1" ]; then
5-
sh -c "ln -s $1 /source"
5+
echo "linking $PWD/$1 to /source"
6+
sh -c "ln -s $PWD/$1 /source"
67
else # if no custom path is specified we symlink the default checkout location to /source
7-
sh -c "ln -s /github/workflow /source"
8+
echo "linking $PWD to /source"
9+
sh -c "ln -s $PWD /source"
810
fi
911

1012
sh -c "analyze $*"

0 commit comments

Comments
 (0)