Skip to content

Commit

Permalink
Merge pull request #37 from szaimen/patch-1
Browse files Browse the repository at this point in the history
fix relative dir
  • Loading branch information
orklah authored Feb 25, 2022
2 parents b19c447 + a3dfdba commit b50d326
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,13 @@ fi

if [ -n "$INPUT_RELATIVE_DIR" ]
then
cd "$INPUT_RELATIVE_DIR" || echo "Could not cd into the specified subdir."; exit 1
if [ -d "$INPUT_RELATIVE_DIR" ]; then
echo "changing directory into $INPUT_RELATIVE_DIR"
cd "$INPUT_RELATIVE_DIR"
else
echo "given relative_dir not existing"
exit 1
fi
fi

if test -f "composer.json"; then
Expand Down

0 comments on commit b50d326

Please sign in to comment.