Skip to content

Commit

Permalink
[build] fix (Laerdal.SetupBuildEnvironment.sh): fix the path to the a…
Browse files Browse the repository at this point in the history
…rtifacts folder so that it will be properly added to the nuget sources
  • Loading branch information
dsidirop committed Apr 4, 2024
1 parent 328fab1 commit 3c211d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Laerdal.Scripts/Laerdal.SetupBuildEnvironment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 3c211d6

Please sign in to comment.