dotnet tool install should return exit code 0 if tool is already installed · Issue #9500 · dotnet/sdk

I'm trying to write a script that will install global tools if necessary. I would like to just run "dotnet tool install", but this returns exit code 0 if the tool is already present, so I have to f...