zio
/
webhookd-scripts
Archived
2
0
Fork 0

v1: fix missing script not erroring correctly

main
Ducky 2022-01-05 10:58:50 +00:00
parent 7c56b3fa03
commit 3731d7f7e3
1 changed files with 3 additions and 1 deletions

4
v1.sh
View File

@ -131,7 +131,9 @@ log_path="$log_base_dir/$instance.txt"
if [[ -f "$script_path/$event.sh" ]]; then if [[ -f "$script_path/$event.sh" ]]; then
script_path="$script_path/$event.sh" script_path="$script_path/$event.sh"
elif [[ -f "$script_path/default.sh" ]]; then elif [[ -f "$script_path/default.sh" ]]; then
$script_path"$script_path/default.sh" script_path="$script_path/default.sh"
else
script_path=""
fi fi
if [[ ! -z $script_path ]]; then if [[ ! -z $script_path ]]; then