robjschroeder / App-Auto-Patch

Auto patch management script via Dialog
https://techitout.xyz/app-auto-patch/
MIT License
109 stars 18 forks source link

Adding deferral function to App-Auto-Patch #33

Closed TechTrekkie closed 8 months ago

TechTrekkie commented 8 months ago

This is to merge the fork that I added deferral functionality to. This is the same as the latest version I last sent you a couple of weeks ago.

Just a recap for the PR documentation: This new function allows you to display a notification to the user that updates are available after the discovery stage, and allows the user to defer the installation until a later time. It's recommended to set interactiveMode=1 if the deferral function is enabled so the discovery stage is done silently prior to notifying the user that updates are available to install.

The deferral functionality is disabled by default using the variable `maxDeferrals="Disabled," so the script functions normally unless that variable is specifically given a numerical value.

Variables:

Config files:

Screenshot of the deferral prompt: image

robjschroeder commented 8 months ago

Fantastic thanks @TechTrekkie !