From d098e94ad102da9d018acca72ca5a5c554d25a01 Mon Sep 17 00:00:00 2001 From: Elizabeth Date: Mon, 2 Jun 2025 13:11:10 -0700 Subject: Update paths n stuff --- dots/tmux/.tmux/plugins/tpm/scripts/helpers/utility.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 dots/tmux/.tmux/plugins/tpm/scripts/helpers/utility.sh (limited to 'dots/tmux/.tmux/plugins/tpm/scripts/helpers/utility.sh') diff --git a/dots/tmux/.tmux/plugins/tpm/scripts/helpers/utility.sh b/dots/tmux/.tmux/plugins/tpm/scripts/helpers/utility.sh new file mode 100644 index 0000000..de6eb35 --- /dev/null +++ b/dots/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 +} -- cgit v1.2.3-70-g09d2