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
cf612a42
Commit
cf612a42
authored
Feb 06, 2019
by
KyleWong
Committed by
xster
Feb 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check powershell version. (#27596)
parent
da27f623
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
update_dart_sdk.ps1
bin/internal/update_dart_sdk.ps1
+9
-0
No files found.
bin/internal/update_dart_sdk.ps1
View file @
cf612a42
...
...
@@ -23,6 +23,15 @@ $engineVersion = (Get-Content "$flutterRoot\bin\internal\engine.version")
$oldDartSdkPrefix
=
"dart-sdk.old"
# Make sure that PowerShell has expected version.
$psMajorVersionRequired
=
5
$psMajorVersionLocal
=
$PSVersionTable
.PSVersion.Major
if
(
$psMajorVersionLocal
-lt
$psMajorVersionRequired
)
{
Write-Host
"Flutter requires PowerShell
$psMajorVersionRequired
.0 or newer."
Write-Host
"See https://flutter.io/docs/get-started/install/windows for more."
return
}
if
((
Test-Path
$engineStamp
)
-and
(
$engineVersion
-eq
(
Get-Content
$engineStamp
)))
{
return
}
...
...
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