From bd06106e80be63c7a5cb826565eed5a4480bfdea Mon Sep 17 00:00:00 2001 From: robotboy Date: Tue, 3 Aug 2010 13:31:52 -0700 Subject: [PATCH] Add checks that the board and variant names don't contain underscores. Review URL: http://codereview.chromium.org/2878077 --- bin/cros_overlay_list | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bin/cros_overlay_list b/bin/cros_overlay_list index 5aeb2d49ce..1d768663e9 100755 --- a/bin/cros_overlay_list +++ b/bin/cros_overlay_list @@ -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. #