mirror of
https://github.com/flutter/flutter
synced 2024-10-14 04:02:56 +00:00
124dc6617f
See #41880 for history.
20 lines
465 B
Bash
Executable file
20 lines
465 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
# This script is only meant to be run by the Cirrus CI system, not locally.
|
|
# It must be run from the root of the Flutter repo.
|
|
|
|
function error() {
|
|
echo "$@" 1>&2
|
|
}
|
|
|
|
function accept_android_licenses() {
|
|
yes "y" | flutter doctor --android-licenses > /dev/null 2>&1
|
|
}
|
|
|
|
echo "Flutter SDK directory is: $PWD"
|
|
|
|
# Accept licenses.
|
|
echo "Accepting Android licenses."
|
|
accept_android_licenses || (error "Accepting Android licenses failed." && false)
|