Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   ArchLinux Pacman Development (http://www.linux-archive.org/archlinux-pacman-development/)
-   -   rankmirror: pipe errors to stderr (http://www.linux-archive.org/archlinux-pacman-development/389696-rankmirror-pipe-errors-stderr.html)

Andres P 06-23-2010 02:42 AM

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

Signed-off-by: Andres P <aepd87@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

"Allan McRae" 06-23-2010 03:07 AM

rankmirror: pipe errors to stderr
 
On 23/06/10 12:42, Andres P wrote:

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

Signed-off-by: Andres P<aepd87@gmail.com>
---


Signed-off-by: Allan

On my working branch.


All times are GMT. The time now is 04:04 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.