Skip to content

Commit

Permalink
Merge pull request #48 from allexks/request/create-working-dir
Browse files Browse the repository at this point in the history
Create working directory if it does not exist
  • Loading branch information
xu-cheng authored Jan 2, 2021
2 parents fa90c20 + a164867 commit fea2c87
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ if [[ -n "$extra_packages" ]]; then
fi

if [[ -n "$working_directory" ]]; then
if [[ ! -d "$working_directory" ]]; then
mkdir -p "$working_directory"
fi
cd "$working_directory"
fi

Expand Down

0 comments on commit fea2c87

Please sign in to comment.