diff options
author | Marius Tomaschewski <mt@suse.com> | 2022-11-11 12:26:04 +0100 |
---|---|---|
committer | Marius Tomaschewski <mt@suse.com> | 2022-11-11 15:43:59 +0100 |
commit | 5216a05b32390a64efeb598051411e1776042624 (patch) | |
tree | 9ec58fd19fea8cadab2bfd820347a9b2b91bea8e /tools | |
parent | Merge pull request #12303 from donaldsharp/relax_if_type_check (diff) | |
download | frr-5216a05b32390a64efeb598051411e1776042624.tar.xz frr-5216a05b32390a64efeb598051411e1776042624.zip |
tools: remove backslash from declare check regex
The backslash in `grep -q '^declare \-a'` is not needed and
causes `grep: warning: stray \ before -` warning in grep-3.8.
Signed-off-by: Marius Tomaschewski <mt@suse.com>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/frrcommon.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/frrcommon.sh.in b/tools/frrcommon.sh.in index 61f1abb37..3c16c27c6 100755 --- a/tools/frrcommon.sh.in +++ b/tools/frrcommon.sh.in @@ -335,7 +335,7 @@ if [ -z "$FRR_PATHSPACE" ]; then load_old_config "/etc/sysconfig/frr" fi -if { declare -p watchfrr_options 2>/dev/null || true; } | 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." |