From 74a45912c4dfdfc6663c157f46224d7532a6704d Mon Sep 17 00:00:00 2001 From: michaellee8 Date: Mon, 16 Nov 2020 06:41:13 +0000 Subject: [PATCH] fix: ensure SCRIPT_DIR exists --- scripts/check_tmux_version.sh | 4 ++++ scripts/helpers/tmux_echo_functions.sh | 3 +++ 2 files changed, 7 insertions(+) diff --git a/scripts/check_tmux_version.sh b/scripts/check_tmux_version.sh index 0774d7f..f5db448 100755 --- a/scripts/check_tmux_version.sh +++ b/scripts/check_tmux_version.sh @@ -3,6 +3,10 @@ VERSION="$1" UNSUPPORTED_MSG="$2" +CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +SCRIPTS_DIR="$CURRENT_DIR/../scripts" +HELPERS_DIR="$SCRIPTS_DIR/helpers" + source "$SCRIPTS_DIR/tmux_cmd_path.sh" diff --git a/scripts/helpers/tmux_echo_functions.sh b/scripts/helpers/tmux_echo_functions.sh index 989b876..8bf6aa0 100644 --- a/scripts/helpers/tmux_echo_functions.sh +++ b/scripts/helpers/tmux_echo_functions.sh @@ -1,3 +1,6 @@ +CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +SCRIPTS_DIR="$CURRENT_DIR/../../scripts" +HELPERS_DIR="$SCRIPTS_DIR/helpers" source "$SCRIPTS_DIR/tmux_cmd_path.sh" _has_emacs_mode_keys() {