Make nuget source handling pass always 68/274168/1
authorWonyoung Choi <wy80.choi@samsung.com>
Fri, 22 Apr 2022 00:29:41 +0000 (09:29 +0900)
committerWonyoung Choi <wy80.choi@samsung.com>
Fri, 22 Apr 2022 09:43:32 +0000 (18:43 +0900)
Change-Id: I6afad8c8a7b3b0e95c05298a0c2eded5ebf6b49a

tools/dotnet-wrapper.sh

index 1e19ec0..34aeab6 100755 (executable)
@@ -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