Skip to content

Commit f9f76d9

Browse files
authored
CSHARP-5332: Fix EFCore test script (#1507)
1 parent 528cd61 commit f9f76d9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

evergreen/run-external-script.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ git clone -b "${GIT_BRANCH:-main}" --single-branch "${GIT_REPO}" .
1414
# add/adjust nuget.config pointing to myget so intermediate versions could be restored
1515
if [ -f "./nuget.config" ]; then
1616
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
1821
else
1922
echo "Creating custom nuget.config"
2023
cat > "nuget.config" << EOL

0 commit comments

Comments
 (0)