macupdater
Search…
Adding a module
How to add an update module

Basic structure

1
# Module name
2
{ echo "Module/name"; echo ""; update/command/here; another/update/command/here; cleanup/command/here; } >> $LOG
3
catcher module/name
4
line
Copied!
To add an update module follow the basic structure of:
    First echo the name of the module so that it is placed into the log file.
    Echo a blank line.
    Add commands to update packages. Make sure to separate the commands with a semi-colon.
    All the error messages produced by the commands between the parentheses will be piped to the log file (by >>$LOG).
    Call the Catcher function and pass the module's name to it.
    Add a line to end the section in the log file.
Last modified 1yr ago
Copy link