From 4be7edce85889d6edd50c94113af51dc65591ecb Mon Sep 17 00:00:00 2001 From: Danny Staple Date: Mon, 14 Aug 2023 19:56:52 +0100 Subject: [PATCH] fix(templates): check for NUKE_ENTERPRISE_TOKEN variable (#1221) --- source/Nuke.GlobalTool/templates/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Nuke.GlobalTool/templates/build.sh b/source/Nuke.GlobalTool/templates/build.sh index 199863258..9f459d316 100644 --- a/source/Nuke.GlobalTool/templates/build.sh +++ b/source/Nuke.GlobalTool/templates/build.sh @@ -58,7 +58,7 @@ fi echo "Microsoft (R) .NET SDK version $("$DOTNET_EXE" --version)" -if [[ ! -z ${NUKE_ENTERPRISE_TOKEN+x} && "NUKE_ENTERPRISE_TOKEN" != "" ]]; then +if [[ ! -z ${NUKE_ENTERPRISE_TOKEN+x} && "$NUKE_ENTERPRISE_TOKEN" != "" ]]; then "$DOTNET_EXE" nuget remove source "nuke-enterprise" &>/dev/null || true "$DOTNET_EXE" nuget add source "https://f.feedz.io/nuke/enterprise/nuget" --name "nuke-enterprise" --username "PAT" --password "$NUKE_ENTERPRISE_TOKEN" --store-password-in-clear-text &>/dev/null || true fi