Add check for spaces in board and variant names.

Review URL: http://codereview.chromium.org/3084028
This commit is contained in:
robotboy 2010-08-09 13:29:30 -07:00
parent bfbb74f667
commit 508d08fdfb

View File

@ -30,13 +30,13 @@ if [ -z "$FLAGS_board" ] ; then
exit 1 exit 1
fi fi
if [[ "$FLAGS_board" =~ "_" ]] ; then if [[ $FLAGS_board =~ [_\ ] ]] ; then
error "--board name must not contain an underscore (_)." error "--board name must not contain an underscore (_) or a space ( )."
exit 1 exit 1
fi fi
if [[ "$FLAGS_variant" =~ "_" ]] ; then if [[ $FLAGS_variant =~ [_\ ] ]] ; then
error "--variant name must not contain an underscore (_)." error "--variant name must not contain an underscore (_) or a space ( )."
exit 1 exit 1
fi fi