From 89bc98622464dce4cfc186f7c0559fce1071f9fd Mon Sep 17 00:00:00 2001 From: Wonyoung Choi Date: Fri, 22 Apr 2022 09:29:41 +0900 Subject: [PATCH] Make nuget source handling pass always Change-Id: I6afad8c8a7b3b0e95c05298a0c2eded5ebf6b49a --- tools/dotnet-wrapper.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/dotnet-wrapper.sh b/tools/dotnet-wrapper.sh index 1e19ec0d..34aeab64 100755 --- a/tools/dotnet-wrapper.sh +++ b/tools/dotnet-wrapper.sh @@ -14,8 +14,8 @@ if [ ! -f "$HOME/.nuget_config_fixed" ]; then # Ensure that the nuget config file is created. $DOTNET_CLI_PATH nuget locals -l all if [ -f $NUGET_CONFIG_FILE ]; then - $DOTNET_CLI_PATH nuget disable source nuget.org --configfile $NUGET_CONFIG_FILE - $DOTNET_CLI_PATH nuget add source -n local /nuget --configfile $NUGET_CONFIG_FILE + $DOTNET_CLI_PATH nuget disable source nuget.org --configfile $NUGET_CONFIG_FILE || true + $DOTNET_CLI_PATH nuget add source -n local /nuget --configfile $NUGET_CONFIG_FILE || true touch $HOME/.nuget_config_fixed 2>/dev/null || true fi fi -- 2.34.1