From 38d7b66ac3ea8f1436cfaad6202306a9991673bd Mon Sep 17 00:00:00 2001 From: foxnne Date: Sat, 21 Sep 2019 20:44:36 -0500 Subject: [PATCH] should fix exiting without dotnet --- getFNA.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/getFNA.ps1 b/getFNA.ps1 index bdd43bb..2dfcddd 100644 --- a/getFNA.ps1 +++ b/getFNA.ps1 @@ -11,8 +11,9 @@ function checkDotnet() catch [System.Management.Automation.CommandNotFoundException] { Write-Output "ERROR: Dotnet is not installed. Please install dotnet to download the t4 tool." - exit + return 0; } + return 1; } function installT4 ()