[pacman-dev] [PATCH 1/3] rankmirror: pipe errors to stderr

Andres P aepd87 at gmail.com
Tue Jun 22 22:42:49 EDT 2010


If this is to be scripted with AIF or another tool, it needs to respect stderr.

Signed-off-by: Andres P <aepd87 at gmail.com>
---
 scripts/rankmirrors.sh.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/rankmirrors.sh.in b/scripts/rankmirrors.sh.in
index 9b4e973..283fb46 100644
--- a/scripts/rankmirrors.sh.in
+++ b/scripts/rankmirrors.sh.in
@@ -49,7 +49,7 @@ version() {
 }
 
 err() {
-	echo "$1"
+	echo "$1" >&2
 	exit 1
 }
 
-- 
1.7.1



More information about the pacman-dev mailing list