Skip to content
Snippets Groups Projects
Commit 6c20db87 authored by alice's avatar alice
Browse files

checkapk: fix a mistaken grep warning

grep: warning: stray \ before -
it matches without \ anyway
parent cc17a1cc
No related branches found
No related tags found
No related merge requests found
Pipeline #170797 passed
...@@ -120,7 +120,7 @@ for i in $pkgname $subpackages; do ...@@ -120,7 +120,7 @@ for i in $pkgname $subpackages; do
wait wait
# filter to things that start with -+ but strip the header (---/+++) # filter to things that start with -+ but strip the header (---/+++)
diff -U0 "filelist-$_pkgname-old" "filelist-$_pkgname-new" | grep -E '^(\+|\-)[A-Za-z0-9]+' | grep '\.so' | while read -r diff_sofile; do diff -U0 "filelist-$_pkgname-old" "filelist-$_pkgname-new" | grep -E '^(\+|-)[A-Za-z0-9]+' | grep '\.so' | while read -r diff_sofile; do
case "$diff_sofile" in case "$diff_sofile" in
-*) path="$_pkgname-pkg-old"; sofile="${diff_sofile#\-}" ;; -*) path="$_pkgname-pkg-old"; sofile="${diff_sofile#\-}" ;;
+*) path="$_pkgname-pkg-new"; sofile="${diff_sofile#\+}" ;; +*) path="$_pkgname-pkg-new"; sofile="${diff_sofile#\+}" ;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment