checkapk: fix a mistaken grep warning

grep: warning: stray \ before -
it matches without \ anyway
This commit is contained in:
psykose 2023-07-17 04:12:56 +00:00
parent cc17a1cc79
commit 6c20db871b
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ for i in $pkgname $subpackages; do
wait
# 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
-*) path="$_pkgname-pkg-old"; sofile="${diff_sofile#\-}" ;;
+*) path="$_pkgname-pkg-new"; sofile="${diff_sofile#\+}" ;;