Skip to content

Commit

Permalink
frr: fix grep warning in frrcommon.sh
Browse files Browse the repository at this point in the history
Fixes:
grep: warning: stray \ before -

Signed-off-by: Georgi Valkov <[email protected]>
  • Loading branch information
httpstorm committed May 5, 2024
1 parent 7cdf7b9 commit 6d6ed2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/frr/files/frrcommon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,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 6d6ed2a

Please sign in to comment.