Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
81b81d30
Commit
81b81d30
authored
Mar 07, 2017
by
Chris Bracken
Committed by
GitHub
Mar 07, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exit with error message when run as root (#8626)
parent
a4125f3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
flutter
bin/flutter
+9
-0
No files found.
bin/flutter
View file @
81b81d30
...
...
@@ -46,6 +46,15 @@ DART_SDK_PATH="$FLUTTER_ROOT/bin/cache/dart-sdk"
DART
=
"
$DART_SDK_PATH
/bin/dart"
PUB
=
"
$DART_SDK_PATH
/bin/pub"
# Test if running as superuser
if
[[
"
$EUID
"
==
"0"
]]
;
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
"📎"
exit
1
fi
# Test if Git is available on the Host
if
!
hash
git 2>/dev/null
;
then
echo
"Error: Unable to find git in your PATH."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment