polystrap-nb: error messages reviewed
* s/target/board/ * (standard) output to error output * non zero exit
This commit is contained in:
parent
61c4202af9
commit
577d707826
1 changed files with 4 additions and 4 deletions
|
@ -9,15 +9,15 @@ dir_depth() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$#" -ne 1 ]; then
|
if [ "$#" -ne 1 ]; then
|
||||||
echo "you have to specify the new target name"
|
echo 1>&2 "you have to specify the new board name"
|
||||||
exit
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
BOARD="$1"
|
BOARD="$1"
|
||||||
|
|
||||||
if [ -e "$BOARD" ]; then
|
if [ -e "$BOARD" ]; then
|
||||||
echo "target already exists"
|
echo 1>&2 "board already exists"
|
||||||
exit
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p $BOARD/
|
mkdir -p $BOARD/
|
||||||
|
|
Loading…
Reference in a new issue