mirror of
https://github.com/tmux-plugins/tpm.git
synced 2024-10-31 23:28:47 +00:00
18 lines
211 B
Bash
18 lines
211 B
Bash
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
|
|
}
|