diff --git a/bin/internal/update_engine_version.ps1 b/bin/internal/update_engine_version.ps1 index 846ffbe1904..6cde49adc40 100644 --- a/bin/internal/update_engine_version.ps1 +++ b/bin/internal/update_engine_version.ps1 @@ -14,6 +14,8 @@ # # -------------------------------------------------------------------------- # +$ErrorActionPreference = "Stop" + $progName = Split-Path -parent $MyInvocation.MyCommand.Definition $flutterRoot = (Get-Item $progName).parent.parent.FullName @@ -29,11 +31,8 @@ $flutterRoot = (Get-Item $progName).parent.parent.FullName # functioning. Please file an issue if you have workflow needs. if (![string]::IsNullOrEmpty($env:FLUTTER_PREBUILT_ENGINE_VERSION)) { $engineVersion = $env:FLUTTER_PREBUILT_ENGINE_VERSION - Write-Error "[Unstable] Override: Setting engine SHA to $engineVersion" } -$ErrorActionPreference = "Stop" - # Test for fusion repository if ([string]::IsNullOrEmpty($engineVersion) -and (Test-Path "$flutterRoot\DEPS" -PathType Leaf) -and (Test-Path "$flutterRoot\engine\src\.gn" -PathType Leaf)) { # Calculate the engine hash from tracked git files. diff --git a/bin/internal/update_engine_version.sh b/bin/internal/update_engine_version.sh index a35fa190aa2..a7ff3d6fc62 100755 --- a/bin/internal/update_engine_version.sh +++ b/bin/internal/update_engine_version.sh @@ -29,7 +29,6 @@ set -e # functioning. Please file an issue if you have workflow needs. if [ -n "${FLUTTER_PREBUILT_ENGINE_VERSION}" ]; then ENGINE_VERSION="${FLUTTER_PREBUILT_ENGINE_VERSION}" - echo "[Unstable] Override: Setting engine SHA to $ENGINE_VERSION" 1>&2 fi FLUTTER_ROOT="$(dirname "$(dirname "$(dirname "${BASH_SOURCE[0]}")")")"