diff options
author | Elizabeth <me@liz.coffee> | 2025-05-19 23:03:02 -0700 |
---|---|---|
committer | Elizabeth <me@liz.coffee> | 2025-05-19 23:03:02 -0700 |
commit | 15b24ab9d782a8e5683f305ec8b1c31849a64246 (patch) | |
tree | bdb7c85f0d1f81e493c43360125ca61d6d26145c /tmux/.tmux/plugins/tpm/scripts/helpers/utility.sh | |
download | dotfiles-15b24ab9d782a8e5683f305ec8b1c31849a64246.tar.gz dotfiles-15b24ab9d782a8e5683f305ec8b1c31849a64246.zip |
initial commit
Diffstat (limited to 'tmux/.tmux/plugins/tpm/scripts/helpers/utility.sh')
-rw-r--r-- | tmux/.tmux/plugins/tpm/scripts/helpers/utility.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tmux/.tmux/plugins/tpm/scripts/helpers/utility.sh b/tmux/.tmux/plugins/tpm/scripts/helpers/utility.sh new file mode 100644 index 0000000..de6eb35 --- /dev/null +++ b/tmux/.tmux/plugins/tpm/scripts/helpers/utility.sh @@ -0,0 +1,17 @@ +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 +} |