mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 07:01:13 +02:00
Add check for spaces in board and variant names.
Review URL: http://codereview.chromium.org/3084028
This commit is contained in:
parent
bfbb74f667
commit
508d08fdfb
@ -30,13 +30,13 @@ if [ -z "$FLAGS_board" ] ; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ "$FLAGS_board" =~ "_" ]] ; then
|
||||
error "--board name must not contain an underscore (_)."
|
||||
if [[ $FLAGS_board =~ [_\ ] ]] ; then
|
||||
error "--board name must not contain an underscore (_) or a space ( )."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ "$FLAGS_variant" =~ "_" ]] ; then
|
||||
error "--variant name must not contain an underscore (_)."
|
||||
if [[ $FLAGS_variant =~ [_\ ] ]] ; then
|
||||
error "--variant name must not contain an underscore (_) or a space ( )."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user