diff --git a/webhooks-git/entrypoint.sh b/webhooks-git/entrypoint.sh index cc2f8de..de48715 100644 --- a/webhooks-git/entrypoint.sh +++ b/webhooks-git/entrypoint.sh @@ -11,15 +11,15 @@ template_file="/etc/webhook/hook.json.tmpl" output_file="/etc/webhook/hook.json" # Check if the template file exists -if [ ! -f "$template_file" ]; then +if [ ! -f "$template_file" ]; +then echo "Template file $template_file not found." - exit 1 + # exit 1 +else + envsubst < "$template_file" > "$output_file" + echo "Generated $output_file" fi -envsubst < "$template_file" > "$output_file" - -echo "Generated $output_file" - # # Start webhooks #