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
7799afe2
Unverified
Commit
7799afe2
authored
Apr 03, 2019
by
Christopher Fujino
Committed by
GitHub
Apr 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make shellcheck (linter) recommended changes to bin/flutter (#30456)
parent
194babfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
flutter
bin/flutter
+9
-3
No files found.
bin/flutter
View file @
7799afe2
...
...
@@ -41,11 +41,11 @@ function _rmlock () {
function
retry_upgrade
{
local
total_tries
=
"10"
local
remaining_tries
=
$((
$
total_tries
-
1
))
while
[[
"
$remaining_tries
"
>
0
]]
;
do
local
remaining_tries
=
$((
total_tries
-
1
))
while
[[
"
$remaining_tries
"
-gt
0
]]
;
do
(
cd
"
$FLUTTER_TOOLS_DIR
"
&&
"
$PUB
"
upgrade
"
$VERBOSITY
"
)
&&
break
echo
"Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (
$remaining_tries
tries left)"
remaining_tries
=
$((
$
remaining_tries
-
1
))
remaining_tries
=
$((
remaining_tries
-
1
))
sleep
5
done
...
...
@@ -102,6 +102,12 @@ function upgrade_flutter () {
fi
local
revision
=
"
$(
cd
"
$FLUTTER_ROOT
"
;
git rev-parse HEAD
)
"
# Invalidate cache if:
# * SNAPSHOT_PATH is not a file, or
# * STAMP_PATH is not a file with nonzero size, or
# * Contents of STAMP_PATH is not our local git HEAD revision, or
# * pubspec.yaml last modified after pubspec.lock
if
[[
!
-f
"
$SNAPSHOT_PATH
"
||
!
-s
"
$STAMP_PATH
"
||
"
$(
cat
"
$STAMP_PATH
"
)
"
!=
"
$revision
"
||
"
$FLUTTER_TOOLS_DIR
/pubspec.yaml"
-nt
"
$FLUTTER_TOOLS_DIR
/pubspec.lock"
]]
;
then
rm
-f
"
$FLUTTER_ROOT
/version"
touch
"
$FLUTTER_ROOT
/bin/cache/.dartignore"
...
...
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