From c3f34db81e442c946f796e25fa77133ae1b9e952 Mon Sep 17 00:00:00 2001 From: James Shubin Date: Sun, 3 Dec 2023 17:59:22 -0500 Subject: [PATCH] test: Remove new grep warning With newer versions of grep, you now see: grep: warning: stray \ before " This is because we had an erroneous backslash escaping a quote. Remove it. --- test/test-govet.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test-govet.sh b/test/test-govet.sh index bc7da0632..6acc9e1be 100755 --- a/test/test-govet.sh +++ b/test/test-govet.sh @@ -60,10 +60,10 @@ function naked-error() { # catch errors that start with a capital function lowercase-errors() { - if grep -E 'errors\.New\(\"[A-Z]' "$1"; then + if grep -E 'errors\.New\("[A-Z]' "$1"; then return 1 fi - if grep -E 't\.Errorf\(\"[A-Z]' "$1"; then # t.Errorf or fmt.Errorf + if grep -E 't\.Errorf\("[A-Z]' "$1"; then # t.Errorf or fmt.Errorf return 1 fi # TODO: add errwrap.Wrap* related matching