mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-07-04 04:01:39 +02:00
Remove double output redirection, _exiterr already does >&2
This commit is contained in:
committed by
Lukas Schauer
parent
875c1f74e5
commit
5787cd6a47
+2
-2
@@ -147,7 +147,7 @@ load_config() {
|
|||||||
|
|
||||||
if [[ -n "${CONFIG_D}" ]]; then
|
if [[ -n "${CONFIG_D}" ]]; then
|
||||||
if [[ ! -d "${CONFIG_D}" ]]; then
|
if [[ ! -d "${CONFIG_D}" ]]; then
|
||||||
_exiterr "The path ${CONFIG_D} specified for CONFIG_D does not point to a directory." >&2
|
_exiterr "The path ${CONFIG_D} specified for CONFIG_D does not point to a directory."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for check_config_d in "${CONFIG_D}"/*.sh; do
|
for check_config_d in "${CONFIG_D}"/*.sh; do
|
||||||
@@ -159,7 +159,7 @@ load_config() {
|
|||||||
# shellcheck disable=SC1090
|
# shellcheck disable=SC1090
|
||||||
. "${check_config_d}"
|
. "${check_config_d}"
|
||||||
else
|
else
|
||||||
_exiterr "Specified additional config ${check_config_d} is not readable or not a file at all." >&2
|
_exiterr "Specified additional config ${check_config_d} is not readable or not a file at all."
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user