about summary refs log tree commit diff
path: root/xdowngrade
diff options
context:
space:
mode:
authortriallax <triallax@tutanota.com>2023-06-26 11:51:57 +0100
committerLeah Neukirchen <leah@vuxu.org>2023-06-26 14:28:31 +0200
commit95274e1b5d5826d0248b1053388592cec744864e (patch)
tree5f4788b05ab33be2f6338051c2fcf9d3a4c5bd72 /xdowngrade
parentc41f36d4f5153956f97bce655e94c45168cbc941 (diff)
downloadxtools-95274e1b5d5826d0248b1053388592cec744864e.tar.gz
xtools-95274e1b5d5826d0248b1053388592cec744864e.tar.xz
xtools-95274e1b5d5826d0248b1053388592cec744864e.zip
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]
Diffstat (limited to 'xdowngrade')
-rwxr-xr-xxdowngrade4
1 files changed, 2 insertions, 2 deletions
diff --git a/xdowngrade b/xdowngrade
index e64beb0..1017535 100755
--- a/xdowngrade
+++ b/xdowngrade
@@ -3,7 +3,7 @@
 
 for f; do
 	if ! [ -r "$f" ]; then
-		echo "$0: no such package: $f" 2>&1
+		echo "$0: no such package: $f" >&2
 		exit 2
 	fi
 done
@@ -12,7 +12,7 @@ ln -s -r -t "$T/" -- "$@"
 xbps-rindex -a $T/*
 n=$(xbps-query -i --repository="$T/" -L 2>/dev/null | awk '{print $1}')
 if [ -z "$n" ] || [ "$n" -ne "$#" ]; then
-	echo "$0: failed to register all $# packages." 2>&1
+	echo "$0: failed to register all $# packages." >&2
 	exit 2
 fi
 pkg=