mrflos-nixos-config-fork/configs/tmux/plugins/tpm/scripts/helpers/utility.sh

18 lines
211 B
Bash
Raw Normal View History

2023-12-30 11:54:30 +00:00
ensure_tpm_path_exists() {
mkdir -p "$(tpm_path)"
}
fail_helper() {
local message="$1"
echo "$message" >&2
FAIL="true"
}
exit_value_helper() {
if [ "$FAIL" == "true" ]; then
exit 1
else
exit 0
fi
}