[PATCH 3/3] polystrap-nb: error messages reviewed

Geert Stappers <[email protected]>
Newsgroups gmane.linux.debian.devel.embedded
Message-ID <[email protected]>
* s/target/board/
* (standard) output to error output
* non zero exit
---
 polystrap-nb |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/polystrap-nb b/polystrap-nb
index 4b851c3..6791f9c 100755
--- a/polystrap-nb
+++ b/polystrap-nb
@@ -9,15 +9,15 @@ dir_depth() {
 }
 
 if [ "$#" -ne 1 ]; then
-	echo "you have to specify the new target name"
-	exit
+	echo 1>&2 "you have to specify the new board name"
+	exit 1
 fi
 
 BOARD="$1"
 
 if [ -e "$BOARD" ]; then
-	echo "target already exists"
-	exit
+	echo 1>&2 "board already exists"
+	exit 1
 fi
 
 mkdir -p $BOARD/
-- 
1.7.2.5
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.