#!/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); } # 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 ~; } _run_checkpoints