Skip to content

Let a user skip the root warning in bin/flutter #10529

@kevmoo

Description

@kevmoo

I'm trying to run some tools in Docker – having to handle the warning about running as root is a bit annoying.

Could I have an ENV variable that can silence this? (See my horrible bash script edit below)

# Test if running as superuser
if [[ "$EUID" == "0" && !dont_annoy_kevin ]]; then
  echo "   Woah! You appear to be trying to run flutter as root."
  echo "   We strongly recommend running the flutter tool without superuser privileges."
  echo "  /"
  echo "📎"
fi

Metadata

Metadata

Assignees

No one assigned

    Labels

    toolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions