about summary refs log tree commit diff
path: root/xbump
diff options
context:
space:
mode:
Diffstat (limited to 'xbump')
-rwxr-xr-xxbump6
1 files 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