diff --git a/Laerdal.Scripts/Laerdal.SetupBuildEnvironment.sh b/Laerdal.Scripts/Laerdal.SetupBuildEnvironment.sh index 46ee1133..f8641351 100644 --- a/Laerdal.Scripts/Laerdal.SetupBuildEnvironment.sh +++ b/Laerdal.Scripts/Laerdal.SetupBuildEnvironment.sh @@ -208,10 +208,11 @@ if [ $exitCode != 0 ]; then fi declare -r CurrentDirectory="$( dirname "$( readlink -f "${BASH_SOURCE[0]:-"$(command -v -- "$0")"}" )" )" +declare -r RootDirectory="$( dirname "${CurrentDirectory}" )" echo echo "** Adding 'Artifacts' Folder as a Nuget Source:" -mkdir -p "${CurrentDirectory}/Artifacts" && dotnet nuget add source "${CurrentDirectory}/Artifacts" --name "LocalArtifacts" +mkdir -p "${RootDirectory}/Artifacts" && dotnet nuget add source "${RootDirectory}/Artifacts" --name "LocalArtifacts" declare exitCode=$? if [ $exitCode != 0 ]; then echo "##vso[task.logissue type=error]Failed to add 'Artifacts' folder as a nuget source."