Fix wrong return in bash fn call

This commit is contained in:
Alexander Schäferdiek 2022-07-10 18:33:00 +02:00
parent bf6615b034
commit 872e725e3c
9 changed files with 27 additions and 27 deletions

View file

@ -49,17 +49,17 @@ source_config() {
if [[ -f "$config" ]]; then
apply_config "$config";
exit 0;
return;
fi
if [[ -f "$configFallback" ]]; then
apply_config "$configFallback";
exit 0;
return;
fi
if [[ -f "$configGlobalFallback" ]]; then
apply_config "$configGlobalFallback";
exit 0;
return;
fi
}
source_config "$1" "$HOME/.check_updates.conf" "/etc/check_updates.conf"

View file

@ -53,17 +53,17 @@ source_config() {
if [[ -f "$config" ]]; then
apply_config "$config";
exit 0;
return;
fi
if [[ -f "$configFallback" ]]; then
apply_config "$configFallback";
exit 0;
return;
fi
if [[ -f "$configGlobalFallback" ]]; then
apply_config "$configGlobalFallback";
exit 0;
return;
fi
}
source_config "$1" "$HOME/.disk_space_alert.conf" "/etc/disk_space_alert.conf"

View file

@ -55,17 +55,17 @@ source_config() {
if [[ -f "$config" ]]; then
apply_config "$config";
exit 0;
return;
fi
if [[ -f "$configFallback" ]]; then
apply_config "$configFallback";
exit 0;
return;
fi
if [[ -f "$configGlobalFallback" ]]; then
apply_config "$configGlobalFallback";
exit 0;
return;
fi
}
source_config "$1" "$HOME/.docker_check.conf" "/etc/docker_check.conf"

View file

@ -51,17 +51,17 @@ source_config() {
if [[ -f "$config" ]]; then
apply_config "$config";
exit 0;
return;
fi
if [[ -f "$configFallback" ]]; then
apply_config "$configFallback";
exit 0;
return;
fi
if [[ -f "$configGlobalFallback" ]]; then
apply_config "$configGlobalFallback";
exit 0;
return;
fi
}

View file

@ -49,17 +49,17 @@ source_config() {
if [[ -f "$config" ]]; then
apply_config "$config";
exit 0;
return;
fi
if [[ -f "$configFallback" ]]; then
apply_config "$configFallback";
exit 0;
return;
fi
if [[ -f "$configGlobalFallback" ]]; then
apply_config "$configGlobalFallback";
exit 0;
return;
fi
}

View file

@ -52,17 +52,17 @@ source_config() {
if [[ -f "$config" ]]; then
apply_config "$config";
exit 0;
return;
fi
if [[ -f "$configFallback" ]]; then
apply_config "$configFallback";
exit 0;
return;
fi
if [[ -f "$configGlobalFallback" ]]; then
apply_config "$configGlobalFallback";
exit 0;
return;
fi
}

View file

@ -49,17 +49,17 @@ source_config() {
if [[ -f "$config" ]]; then
apply_config "$config";
exit 0;
return;
fi
if [[ -f "$configFallback" ]]; then
apply_config "$configFallback";
exit 0;
return;
fi
if [[ -f "$configGlobalFallback" ]]; then
apply_config "$configGlobalFallback";
exit 0;
return;
fi
}
source_config "$1" "$HOME/.smartctl_tests_long.conf" "/etc/smartctl_tests_long.conf"

View file

@ -59,17 +59,17 @@ source_config() {
if [[ -f "$config" ]]; then
apply_config "$config";
exit 0;
return;
fi
if [[ -f "$configFallback" ]]; then
apply_config "$configFallback";
exit 0;
return;
fi
if [[ -f "$configGlobalFallback" ]]; then
apply_config "$configGlobalFallback";
exit 0;
return;
fi
}
source_config "$1" "$HOME/.systemd_check.conf" "/etc/systemd_check.conf"

View file

@ -65,17 +65,17 @@ source_config() {
if [[ -f "$config" ]]; then
apply_config "$config";
exit 0;
return;
fi
if [[ -f "$configFallback" ]]; then
apply_config "$configFallback";
exit 0;
return;
fi
if [[ -f "$configGlobalFallback" ]]; then
apply_config "$configGlobalFallback";
exit 0;
return;
fi
}
source_config "$2" "$HOME/.systemd_failure_notify.conf" "/etc/systemd_failure_notify.conf"