File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,10 @@ git clone -b "${GIT_BRANCH:-main}" --single-branch "${GIT_REPO}" .
14
14
# add/adjust nuget.config pointing to myget so intermediate versions could be restored
15
15
if [ -f " ./nuget.config" ]; then
16
16
echo " Adding myget into nuget.config"
17
- dotnet nuget add source https://www.myget.org/F/mongodb/api/v3/index.json -n myget.org --configfile ./nuget.config
17
+ NUGET_SOURCES=$( dotnet nuget list source --format short)
18
+ if [[ ${NUGET_SOURCES} != * " https://www.myget.org/F/mongodb/api/v3/index.json" * ]]; then
19
+ dotnet nuget add source https://www.myget.org/F/mongodb/api/v3/index.json -n myget.org --configfile ./nuget.config
20
+ fi
18
21
else
19
22
echo " Creating custom nuget.config"
20
23
cat > " nuget.config" << EOL
You can’t perform that action at this time.
0 commit comments