Skip to content

Commit

Permalink
Install/uninstall nupkg by version.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamazeem committed Jun 14, 2022
1 parent f08aa69 commit 8d56e76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/ci-create-nuget-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,15 @@ echo "[INF] Verifying nuget package [$NUGET_PKG_PATH]"
echo "[INF] Installing"
mkdir "$NUGET_PKG_FEED"
nuget add "$NUGET_PKG_PATH" -source "$NUGET_PKG_FEED"
nuget install zsv -source "$NUGET_PKG_FEED"
nuget install zsv -version "$VERSION" -source "$NUGET_PKG_FEED"

echo "[INF] Verifying installed package"
NUGET_PKG_INSTALLED_DIR="zsv.$VERSION"
tree "$NUGET_PKG_INSTALLED_DIR"

echo "[INF] Uninstalling"
nuget delete zsv "$VERSION" -source "$NUGET_PKG_FEED" -NonInteractive

rm -rf "$NUGET_PKG_INSTALLED_DIR" "$NUGET_PKG_FEED"

echo "[INF] --- [DONE] ---"

0 comments on commit 8d56e76

Please sign in to comment.