[powershell] - Add lts, stable and preview, also remove deprecated versions.
#1562
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ref: #1560
Description:
Added
lts,stableandpreviewversion in proposal and removed deprecated versions. Also added logic to redirect from link provided by Microsoft(such as https://aka.ms/powershell-release?tag=lts) . Microsoft provides redirect links for the LTS, Stable, and Preview versions.Additionally the Microsoft packages repo for debian trixie(13) doesn't have the
powershellpackage available unlike other editions of debian/ ubuntu distributions. So, the package has to be downloaded from GitHub repo and installed for debian trixie(13) and the download logic was broken. Fixed that as well as part of this PR.Changelog:
lts,stableandpreview, also remove deprecated versionslts,stableandpreviewversions.Checklist: