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
35eb6c4a
Commit
35eb6c4a
authored
Feb 15, 2016
by
Ian Hickson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1900 from Hixie/tweak-dart-fetching
Make update_dart_sdk.sh prettier and more resilient
parents
1fb044be
9a00bec5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
update_dart_sdk.sh
bin/cache/update_dart_sdk.sh
+8
-6
No files found.
bin/cache/update_dart_sdk.sh
View file @
35eb6c4a
...
...
@@ -3,12 +3,14 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set
-e
DART_SDK_PATH
=
"
$FLUTTER_ROOT
/bin/cache/dart-sdk"
DART_SDK_STAMP_PATH
=
"
$FLUTTER_ROOT
/bin/cache/dart-sdk.stamp"
DART_SDK_VERSION
=
`
cat
"
$FLUTTER_ROOT
/bin/cache/dart-sdk.version"
`
if
[
!
-f
"
$DART_SDK_STAMP_PATH
"
]
||
[
"
$DART_SDK_VERSION
"
!=
`
cat
"
$DART_SDK_STAMP_PATH
"
`
]
;
then
echo
Downloading Dart SDK
$DART_SDK_VERSION
...
echo
"Downloading Dart SDK
$DART_SDK_VERSION
..."
case
"
$(
uname
-s
)
"
in
Darwin
)
...
...
@@ -25,12 +27,12 @@ if [ ! -f "$DART_SDK_STAMP_PATH" ] || [ "$DART_SDK_VERSION" != `cat "$DART_SDK_S
DART_SDK_URL
=
"http://gsdview.appspot.com/dart-archive/channels/stable/raw/
$DART_SDK_VERSION
/sdk/
$DART_ZIP_NAME
"
rm
-rf
"
$DART_SDK_PATH
"
mkdir
-p
"
$DART_SDK_PATH
"
rm
-rf
--
"
$DART_SDK_PATH
"
mkdir
-p
--
"
$DART_SDK_PATH
"
DART_SDK_ZIP
=
"
$FLUTTER_ROOT
/bin/cache/dart-sdk.zip"
curl
-
C
-
--location
-o
"
$DART_SDK_ZIP
"
"
$DART_SDK_URL
"
curl
-
-progress-bar
-continue-at
=
-
--location
--output
"
$DART_SDK_ZIP
"
"
$DART_SDK_URL
"
unzip
-o
-q
"
$DART_SDK_ZIP
"
-d
"
$FLUTTER_ROOT
/bin/cache"
rm
"
$DART_SDK_ZIP
"
echo
$DART_SDK_VERSION
>
"
$DART_SDK_STAMP_PATH
"
rm
-f
--
"
$DART_SDK_ZIP
"
echo
"
$DART_SDK_VERSION
"
>
"
$DART_SDK_STAMP_PATH
"
fi
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