diff --git a/src/_includes/docs/community/china/os-settings.md b/src/_includes/docs/community/china/os-settings.md index c458f9e3b4..2ad9742f70 100644 --- a/src/_includes/docs/community/china/os-settings.md +++ b/src/_includes/docs/community/china/os-settings.md @@ -13,10 +13,10 @@ {% capture newdir -%}{{prompt}} New-Item -Path '{{installdirsuggestion}}' -ItemType Directory{% endcapture -%} {% capture unzip -%} {{prompt}} Expand-Archive .\{% endcapture -%} {% capture permaddexample -%} -$newPath = $pwd.PATH + "/flutter/bin",$env:PATH -join ";" -[System.Environment]::SetEnvironmentVariable('Path',$newPath,User) -[System.Environment]::SetEnvironmentVariable('PUB_HOSTED_URL','https://pub.flutter-io.cn',User) -[System.Environment]::SetEnvironmentVariable('FLUTTER_STORAGE_BASE_URL','https://storage.flutter-io.cn',User) +$newPath = "$pwd\flutter\bin;$env:PATH" +[System.Environment]::SetEnvironmentVariable('Path', $newPath, 'User') +[System.Environment]::SetEnvironmentVariable('PUB_HOSTED_URL', 'https://pub.flutter-io.cn', 'User') +[System.Environment]::SetEnvironmentVariable('FLUTTER_STORAGE_BASE_URL', 'https://storage.flutter-io.cn', 'User') {% endcapture -%} {% else -%} {% assign shell = 'your terminal' -%}