OSDN Git Service

ART: Fix buildbot-build.sh
authorAndreas Gampe <agampe@google.com>
Thu, 2 Feb 2017 06:07:45 +0000 (22:07 -0800)
committerAndreas Gampe <agampe@google.com>
Thu, 2 Feb 2017 06:07:45 +0000 (22:07 -0800)
Fix infinite loop for unrecognized options.

Test: art/tools/buildbot-build.sh --host
Test: art/tools/buildbot-build.sh --mode=host
Change-Id: I9f3b53021d83ddef2dca89b414065b9ea0bfafbf

tools/buildbot-build.sh

index 2d26b48..963efa4 100755 (executable)
@@ -52,6 +52,9 @@ while true; do
     shift
   elif [[ "$1" == "" ]]; then
     break
+  else
+    echo "Unknown options $@"
+    exit 1
   fi
 done