mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-28 16:06:20 +00:00
tools/frrcommon.sh: ignore 'declare' failures
The "declare -p watchfrr_options" call is just to support backwards compatibility. If it fails, silently ignore that. Signed-off-by: David Lamparter <equinox@diac24.net>
This commit is contained in:
parent
81b834a59d
commit
b7862d93ae
@ -291,7 +291,7 @@ load_old_config "$C_PATH/daemons.conf"
|
||||
load_old_config "/etc/default/frr"
|
||||
load_old_config "/etc/sysconfig/frr"
|
||||
|
||||
if declare -p watchfrr_options | grep -q '^declare \-a'; then
|
||||
if { declare -p watchfrr_options 2>/dev/null || true; } | grep -q '^declare \-a'; then
|
||||
log_warning_msg "watchfrr_options contains a bash array value." \
|
||||
"The configured value is intentionally ignored since it is likely wrong." \
|
||||
"Please remove or fix the setting."
|
||||
|
Loading…
Reference in New Issue
Block a user