Skip to content

Commit

Permalink
added msg if hook folder does not exist
Browse files Browse the repository at this point in the history
Signed-off-by: Dennis Vestergaard Værum <github@varum.dk>
  • Loading branch information
dvaerum committed Nov 5, 2023
1 parent 98dee55 commit e2aa37d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ run_path() {
local hook_folder_path="/docker-entrypoint-hooks.d/$1"
local return_code=0

if ! [ -d "${hook_folder_path}" ]; then
echo "=> Skipping the folder \"${hook_folder_path}\", because it doesn't exist"
return 0
fi

echo "=> Searching for scripts (*.sh) to run, located in the folder: ${hook_folder_path}"

(
Expand Down

0 comments on commit e2aa37d

Please sign in to comment.