homelab/scripts/template/script.sh

22 lines
523 B
Bash
Raw Normal View History

2022-12-31 14:19:03 +01:00
#!/bin/bash
# Template script not meant to be run
set -euo pipefail
source "$HL_LIB"
_assert_vars HL_PERSON
_ch_001-cat_filled_greeting() {
cat $(_fill greeting.templ);
}
2022-12-31 22:46:38 +01:00
# You can do anything inside the function. Just don't popd without pushd first.
# Exitting will of course exit the whole script, use return if you want to
# just exit from a checkpoint. Returning something non-zero will fail the checkpoint,
# so it will be ran the next time it is called.
_ch_002-test_cd_safe() {
cd ~;
}
2022-12-31 14:19:03 +01:00
_run_checkpoints