ROBSD-HOOK(5)

NAME
robsd-hook - robsd hook configuration

DESCRIPTION
All robsd utilities can optionally execute a command after each non-skipped step. The command to execute is configured using the hook configuration variable and may contain one or many arguments passed to execvp(3). For each argument, variables on the form “${variable}” are interpolated where variable can refer to a configuration variable, see robsd-config(8). In addition, the following variables are also available:

step-exit
    exit code of the step
step-name
    name of the step

The exit code of the hook is ignored in the sense that a non-zero exit does not abort the corresponding robsd utility.

EXAMPLES

    hook { "echo" "step ${step-name} done" }

SEE ALSO
robsd-config(8)

AUTHORS
Anton Lindqvist <anton@basename.se>