Black-box tests that run the script with stub commands on a minimal PATH and temp config/state folders.
5 lines
183 B
Bash
Executable File
5 lines
183 B
Bash
Executable File
#!/bin/bash
|
|
# Appends the title, the body and a "--" line to $STUB_DATA/notify; exits $NOTIFY_RC (default 0).
|
|
printf '%s\n' "$1" "$2" -- >> "$STUB_DATA/notify"
|
|
exit "${NOTIFY_RC:-0}"
|