mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 15:11:19 +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
|
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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user