Closed Donovoi closed 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.
This PR relates to https://github.com/AndrewRathbun/KAPE-EZToolsAncillaryUpdater/issues/11
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.