ROBSD-HOOK(5) File Formats Manual ROBSD-HOOK(5)

robsd-hookrobsd hook configuration

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:

exit code of the step
name of the step

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

robsd-config(8)

Anton Lindqvist <anton@basename.se>

February 9, 2022 OpenBSD 7.6