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
e6a827e8
Commit
e6a827e8
authored
Mar 23, 2016
by
Jason Simmons
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2847 from jason-simmons/flutter_absolute_path
Set FLUTTER_ROOT to an absolute path
parents
da88f1d0
e10b74cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
flutter
bin/flutter
+13
-1
No files found.
bin/flutter
View file @
e6a827e8
...
...
@@ -5,7 +5,19 @@
set
-e
export
FLUTTER_ROOT
=
$(
dirname
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
))
function
follow_links
()
{
file
=
"
$1
"
while
[
-h
"
$file
"
]
;
do
# On Mac OS, readlink -f doesn't work.
file
=
"
$(
readlink
"
$file
"
)
"
done
echo
"
$file
"
}
PROG_NAME
=
"
$(
follow_links
"
$BASH_SOURCE
"
)
"
BIN_DIR
=
"
$(
cd
"
${
PROG_NAME
%/*
}
"
;
pwd
-P
)
"
export
FLUTTER_ROOT
=
"
$(
cd
"
${
BIN_DIR
}
/.."
;
pwd
-P
)
"
FLUTTER_TOOLS_DIR
=
"
$FLUTTER_ROOT
/packages/flutter_tools"
SNAPSHOT_PATH
=
"
$FLUTTER_ROOT
/bin/cache/flutter_tools.snapshot"
STAMP_PATH
=
"
$FLUTTER_ROOT
/bin/cache/flutter_tools.stamp"
...
...
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