From 00da93e0de730e0fddee157152a67cf92ca249f7 Mon Sep 17 00:00:00 2001 From: Bryan Oltman Date: Tue, 8 Aug 2023 13:47:44 -0400 Subject: [PATCH] fix(shorebird_cli): update powershell script to exit on errors (#1060) --- bin/shorebird.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/shorebird.ps1 b/bin/shorebird.ps1 index bc8b363e..7885d900 100644 --- a/bin/shorebird.ps1 +++ b/bin/shorebird.ps1 @@ -1,6 +1,8 @@ # This is the windows equivalent of the `third_party/flutter/bin/internal/shared.sh` script # compiles `shorebird_cli/bin/shorebird_cli.dart` to `bin/cache/shorebird.shapshot` +$ErrorActionPreference = "Stop" + # We are running from $shorebirdRootDir\bin $shorebirdBinDir = (Get-Item $PSScriptRoot).FullName $shorebirdRootDir = (Get-Item $shorebirdBinDir\..\).FullName