From 95274e1b5d5826d0248b1053388592cec744864e Mon Sep 17 00:00:00 2001 From: triallax Date: Mon, 26 Jun 2023 11:51:57 +0100 Subject: Clean up shell redirects Some of these are outright wrong (e.g. `echo foo 2>&1`), others are just more verbose than they need to be. Closes: #304 [via git-merge-pr] --- xbump | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xbump') diff --git a/xbump b/xbump index 0d8f527..3e40f84 100755 --- a/xbump +++ b/xbump @@ -16,7 +16,7 @@ spkpattern=$(xsubpkg "$pkg" | tr '\n' '|' | sed 's/\(.*\)|/^(\1)$/') 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>&1 + echo "common/shlibs contains uncommitted changes for other packages." >&2 exit 1 elif [ -n "$shlibs" ]; then git add common/shlibs -- cgit 1.4.1