Skip to content

Commit

Permalink
fix symlinking custom source dir
Browse files Browse the repository at this point in the history
  • Loading branch information
JackNoordhuis committed Jan 10, 2020
1 parent f72bd6b commit 60ab299
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

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

sh -c "analyze $*"

0 comments on commit 60ab299

Please sign in to comment.