Change-Id: I6afad8c8a7b3b0e95c05298a0c2eded5ebf6b49a
# 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