mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-10 06:26:57 +02:00
Add checks that the board and variant names don't contain underscores.
Review URL: http://codereview.chromium.org/2878077
This commit is contained in:
parent
465c39ab50
commit
bd06106e80
@ -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.
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user