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
51d5b1a2
Unverified
Commit
51d5b1a2
authored
Jan 30, 2020
by
刘冲
Committed by
GitHub
Jan 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the default find if possible else fall back (#47522)
parent
9d4a35ba
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
update_dart_sdk.sh
bin/internal/update_dart_sdk.sh
+9
-2
No files found.
bin/internal/update_dart_sdk.sh
View file @
51d5b1a2
...
@@ -60,6 +60,13 @@ if [ ! -f "$ENGINE_STAMP" ] || [ "$ENGINE_VERSION" != `cat "$ENGINE_STAMP"` ]; t
...
@@ -60,6 +60,13 @@ if [ ! -f "$ENGINE_STAMP" ] || [ "$ENGINE_VERSION" != `cat "$ENGINE_STAMP"` ]; t
;;
;;
esac
esac
# Use the default find if possible.
if
[
-e
/usr/bin/find
]
;
then
FIND
=
/usr/bin/find
else
FIND
=
find
fi
DART_SDK_BASE_URL
=
"
${
FLUTTER_STORAGE_BASE_URL
:-
https
://storage.googleapis.com
}
"
DART_SDK_BASE_URL
=
"
${
FLUTTER_STORAGE_BASE_URL
:-
https
://storage.googleapis.com
}
"
DART_SDK_URL
=
"
$DART_SDK_BASE_URL
/flutter_infra/flutter/
$ENGINE_VERSION
/
$DART_ZIP_NAME
"
DART_SDK_URL
=
"
$DART_SDK_BASE_URL
/flutter_infra/flutter/
$ENGINE_VERSION
/
$DART_ZIP_NAME
"
...
@@ -93,8 +100,8 @@ if [ ! -f "$ENGINE_STAMP" ] || [ "$ENGINE_VERSION" != `cat "$ENGINE_STAMP"` ]; t
...
@@ -93,8 +100,8 @@ if [ ! -f "$ENGINE_STAMP" ] || [ "$ENGINE_VERSION" != `cat "$ENGINE_STAMP"` ]; t
exit
1
exit
1
}
}
rm
-f
--
"
$DART_SDK_ZIP
"
rm
-f
--
"
$DART_SDK_ZIP
"
find
"
$DART_SDK_PATH
"
-type
d
-exec
chmod
755
{}
\;
$FIND
"
$DART_SDK_PATH
"
-type
d
-exec
chmod
755
{}
\;
find
"
$DART_SDK_PATH
"
-type
f
$IS_USER_EXECUTABLE
-exec
chmod
a+x,a+r
{}
\;
$FIND
"
$DART_SDK_PATH
"
-type
f
$IS_USER_EXECUTABLE
-exec
chmod
a+x,a+r
{}
\;
echo
"
$ENGINE_VERSION
"
>
"
$ENGINE_STAMP
"
echo
"
$ENGINE_VERSION
"
>
"
$ENGINE_STAMP
"
# delete any temporary sdk path
# delete any temporary sdk 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