AndrewRathbun / KAPE-EZToolsAncillaryUpdater

A script that updates KAPE (using Get-KAPEUpdate.ps1) as well as EZ Tools (within .\KAPE\Modules\bin) and the ancillary files that enhance the output of those tools
MIT License
53 stars 5 forks source link

#11 - create a function to update script #13

Closed Donovoi closed 2 years ago

Donovoi commented 2 years ago

Hi Andrew,

I believe I have successfully created a function that will check the PowerShell script and your releases on GitHub and update if there is a new version available.

If the user does not want to update, there is now a switch called $DoNoUpdate, they can run the script with this flag to ensure it just runs without checking for updates.

The update function will also run with this flag to ensure we do not get stuck in an infinite loop.

All arguments that are passed to the main script by the user, should be passed to the new script once it is updated.

I've tested it on my end, but would love to have someone else test it's all working if possible.

If there are any problems, please let me know.

AndrewRathbun commented 2 years ago

I will check this out hopefully tomorrow or this weekend. Thank you for your work! I don't have enough time at this moment to give it a proper test.

AndrewRathbun commented 2 years ago

This PR relates to https://github.com/AndrewRathbun/KAPE-EZToolsAncillaryUpdater/issues/11