polystrap-nb: error messages reviewed

* s/target/board/
* (standard) output to error output
* non zero exit
main
Geert Stappers 13 years ago committed by josch
parent 61c4202af9
commit 577d707826

@ -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/

Loading…
Cancel
Save