Re: [PATCH v2 2/2] autogen.sh: print errors to stderr, printf instead echo -n



On Fri, 2015-06-19 at 01:25 +0200, Petr Vorel wrote:
Signed-off-by: Petr Vorel <petr vorel gmail com>
---
 autogen.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/autogen.sh b/autogen.sh
index a7e1c17..b4394bf 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -15,8 +15,8 @@ PKG_NAME=NetworkManager
 
 (test -f $srcdir/configure.ac \
   && test -f $srcdir/src/main.c) || {
-    echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
-    echo " top-level $PKG_NAME directory"
+    printf "**Error**: Directory "\`$srcdir\'" does not look like the" >&2
+    echo " top-level $PKG_NAME directory" >&2
     exit 1
 }
 

This patch at least seems OK to me...

Dan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]