Add checks that the board and variant names don't contain underscores.

Review URL: http://codereview.chromium.org/2878077
This commit is contained in:
robotboy 2010-08-03 13:31:52 -07:00
parent 465c39ab50
commit bd06106e80

View File

@ -30,6 +30,16 @@ if [ -z "$FLAGS_board" ] ; then
exit 1
fi
if [[ "$FLAGS_board" =~ "_" ]] ; then
error "--board name must not contain an underscore (_)."
exit 1
fi
if [[ "$FLAGS_variant" =~ "_" ]] ; then
error "--variant name must not contain an underscore (_)."
exit 1
fi
#
# Check for chromeos-overlay.
#