From 94d1bc949192f819ffaab475c488068628dceade Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sat, 2 Dec 2023 19:13:16 +0100 Subject: xbump: use fgrep on spkpattern Fixes #318. --- xbump | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xbump b/xbump index 3e40f84..3dab39b 100755 --- a/xbump +++ b/xbump @@ -12,11 +12,11 @@ if [ -z "$version" ]; then exit 1 fi -spkpattern=$(xsubpkg "$pkg" | tr '\n' '|' | sed 's/\(.*\)|/^(\1)$/') +spkpattern=$(xsubpkg "$pkg") shlibs=$(git diff common/shlibs | grep "^+[^+]" | \ sed "s/^+[^ ]\+ \(.*\)-[^-]\+_[0-9]\+$/\1/") -if [ -n "$(echo "$shlibs" | grep -vE "$spkpattern")" ]; then - echo "common/shlibs contains uncommitted changes for other packages." >&2 +if [ -n "$(echo "$shlibs" | grep -vFx "$spkpattern")" ]; then + echo "common/shlibs contains uncommitted changes for other packages." 2>&1 exit 1 elif [ -n "$shlibs" ]; then git add common/shlibs -- cgit 1.4.1