mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Exclude CI from tool root check (#78885)
This commit is contained in:
parent
5efc7169eb
commit
891511d58f
@ -190,8 +190,8 @@ function shared::execute() {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Test if running as superuser – but don't warn if running within Docker
|
# Test if running as superuser – but don't warn if running within Docker or CI.
|
||||||
if [[ "$EUID" == "0" && ! -f /.dockerenv ]]; then
|
if [[ "$EUID" == "0" && ! -f /.dockerenv && "$CI" != "true" && "$BOT" != "true" && "$CONTINUOUS_INTEGRATION" != "true" ]]; then
|
||||||
>&2 echo " Woah! You appear to be trying to run flutter as root."
|
>&2 echo " Woah! You appear to be trying to run flutter as root."
|
||||||
>&2 echo " We strongly recommend running the flutter tool without superuser privileges."
|
>&2 echo " We strongly recommend running the flutter tool without superuser privileges."
|
||||||
>&2 echo " /"
|
>&2 echo " /"
|
||||||
|
Loading…
Reference in New Issue
Block a user