Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Please ADD ALL Changes to the UNRELEASED SECTION and not a specific release
- git/reset-all: script to run git reset --hard HEAD across all git repositories
- git/push-all: script to push all git repositories
- linux/dev-update: script to pull core dev repos (scripts, credfeto-global-pre-commit, cs-template, credfeto-ai-skills) and reinstall AI skills
- general/update-dotnet-tools: migrate globally-installed dotnet tools to local, uninstalling them from global and installing locally if not already present, before updating local tools
### Fixed
- Shell scripts were cleaned up to pass pre-commit checks, and git/fetch now uses consistent info/success output.
- Replace raw echo output with standard die/success/info helpers in network/wg-create
Expand Down
17 changes: 16 additions & 1 deletion general/update-dotnet-tools
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,22 @@ info() {
printf '\n\033[32m→\033[0m %s\n' "$*"
}

for package in $(dotnet tool list --local | tail -n +3 | cut -f 1 -d " " | sort)
local_packages=$(dotnet tool list --local | tail -n +3 | cut -f 1 -d " " | sort)

for package in $(dotnet tool list --global | tail -n +3 | cut -f 1 -d " " | sort)
do
info "Uninstalling global tool $package..."
dotnet tool uninstall --global "$package"

if echo "$local_packages" | grep -qx "$package"; then
info "$package is already installed locally"
else
info "Installing $package locally..."
dotnet tool install --local "$package"
fi
done

for package in $local_packages
do
info "Updating $package..."
dotnet tool update --local "$package"
Expand Down
Loading