From: Anoop C S Date: Fri, 3 Jan 2025 11:58:18 +0000 (+0530) Subject: script/ceph-backport: Remove stray `\` from grep command X-Git-Tag: v20.0.0~335^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3cec1036a5819a71906790290744a690b1a4ea88;p=ceph.git script/ceph-backport: Remove stray `\` from grep command GNU grep v3.8 release notes[1] has the following mention about the usage of backslashes: "Regular expressions with stray backslashes now cause warnings, as their unspecified behavior can lead to unexpected results." . . . "The warnings are intended as a transition aid; they are likely to be errors in future releases." As a result we see the warning "grep: warning: stray \ before /" during script execution. Therefore remove the extra `\` from grep command. [1] https://git.savannah.gnu.org/cgit/grep.git/tree/NEWS#n85 Signed-off-by: Anoop C S --- diff --git a/src/script/ceph-backport.sh b/src/script/ceph-backport.sh index c216ed32d9b..81b9fc362fc 100755 --- a/src/script/ceph-backport.sh +++ b/src/script/ceph-backport.sh @@ -779,7 +779,7 @@ function maybe_deduce_remote { else assert_fail "bad remote_type ->$remote_type<- in maybe_deduce_remote" fi - remote=$(git remote -v | grep --extended-regexp --ignore-case '(://|@)github.com(/|:|:/)'${url_component}'/ceph(\s|\.|\/|-)' | head -n1 | cut -f 1) + remote=$(git remote -v | grep --extended-regexp --ignore-case '(://|@)github.com(/|:|:/)'${url_component}'/ceph(\s|\.|/|-)' | head -n1 | cut -f 1) echo "$remote" }