Skip to content

Conversation

@tvolkert
Copy link
Contributor

@tvolkert tvolkert commented Mar 4, 2018

Fixes #15136

@tvolkert tvolkert requested review from aam and goderbauer March 4, 2018 18:12
bin/flutter.bat Outdated
:do_sdk_update_and_snapshot
ECHO Checking Dart SDK version...
CALL PowerShell.exe -ExecutionPolicy Bypass -Command "& '%FLUTTER_ROOT%/bin/internal/update_dart_sdk.ps1'"
SET update_dart_bin="%FLUTTER_ROOT%/bin/internal/update_dart_sdk.ps1"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you really need double quotes on RHS?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so in case there are spaces in the path. I cribbed this code off of SO...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so in case there are spaces in the path. I cribbed this code off of SO...

Generally speaking when setting variable to a value with spaces you don't need quotes. When you do use quotes in set they will become part of the variable's value. That could have been your intent. Or not :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering whether the difference is substantive - I tried the fix in my Windows 10 instance, and it worked. Do you think it'd preferable to remove the quotes? If so, I'll try that and verify that it still works.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My preference is to not to use quotes unless there is a reason to use them.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@tvolkert
Copy link
Contributor Author

tvolkert commented Mar 4, 2018

Merging on red because the ChromeBot failure is red on a rerun, but the dashboard doesn't reflect that.

@tvolkert tvolkert merged commit c885015 into flutter:master Mar 4, 2018
@tvolkert tvolkert deleted the win branch March 4, 2018 20:15
DaveShuckerow pushed a commit to DaveShuckerow/flutter that referenced this pull request May 14, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows: downloading Dart SDK fails if flutter_root path contains apostrophe

3 participants