Skip to content

Commit

Permalink
tools: remove backslash from declare check regex
Browse files Browse the repository at this point in the history
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>
(cherry picked from commit 5216a05)
  • Loading branch information
mtomaschewski authored and mergify[bot] committed Nov 15, 2022
1 parent 72e7872 commit 9677fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/frrcommon.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 9677fef

Please sign in to comment.