Revert "fix(shorebird_cli): don't export FLUTTER_STORAGE_BASE_URL in shorebird.ps1" (#2112)

This commit is contained in:
Bryan Oltman
2024-05-15 16:49:38 -04:00
committed by GitHub
parent b6557c86fc
commit 6d589296f4
+3 -7
View File
@@ -117,13 +117,9 @@ function Update-Flutter {
# Set FLUTTER_STORAGE_BASE_URL=https://download.shorebird.dev and execute
# a `flutter` command to trigger a download of Dart, etc.
#
# This is invoked in a subshell to avoid polluting the environment if the
# flutter command fails. See https://stackoverflow.com/a/69758192 for
# subshell suggestion and
# https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_pwsh?view=powershell-7.4
# for official documentation on pwsh.
pwsh -Command { $env:FLUTTER_STORAGE_BASE_URL="https://download.shorebird.dev"; & $args[0] --version } -args $flutter
$env:FLUTTER_STORAGE_BASE_URL = 'https://download.shorebird.dev';
& $flutter --version
Remove-Item Env:\FLUTTER_STORAGE_BASE_URL
}
function Update-Shorebird {