[sysadmin-bin: 87/168] Don't print non-errors to stderr
- From: Andrea Veri <av src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin: 87/168] Don't print non-errors to stderr
- Date: Thu, 24 May 2012 19:58:45 +0000 (UTC)
commit ff72d7256084f77a3dd207584cb3128999c09375
Author: Federico Mena Quintero <federico novell com>
Date: Wed Apr 22 13:37:37 2009 -0500
Don't print non-errors to stderr
If the description file doesn't exist, cmp(1) would have printed an error to stderr.
But *that* is not an error in our context, so we eat cmp(1)'s output.
Signed-off-by: Federico Mena Quintero <federico novell com>
find-cgit-repos.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/find-cgit-repos.sh b/find-cgit-repos.sh
index 1e51d9b..ff30cfe 100755
--- a/find-cgit-repos.sh
+++ b/find-cgit-repos.sh
@@ -23,7 +23,7 @@ function list_repos() {
desc=""
- if ! cmp $r/description /git/empty-description; then
+ if ! cmp $r/description /git/empty-description 2>/dev/null ; then
desc=$(test -f $r/description && cat $r/description)
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]