From a51fb24f625ca0ea2d0f06c4e1685a85377e1d09 Mon Sep 17 00:00:00 2001 From: Bruno Sutic Date: Wed, 29 Jul 2015 21:59:30 +0200 Subject: [PATCH] Extract 'ensure_tpm_path_exists' function --- scripts/clean_plugins.sh | 4 ---- scripts/install_plugins.sh | 4 ---- scripts/shared_functions.sh | 4 ++++ 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/scripts/clean_plugins.sh b/scripts/clean_plugins.sh index 48fb7f8..2dd1c64 100755 --- a/scripts/clean_plugins.sh +++ b/scripts/clean_plugins.sh @@ -25,10 +25,6 @@ clean_plugins() { done } -ensure_tpm_path_exists() { - mkdir -p "$SHARED_TPM_PATH" -} - main() { reload_tmux_environment shared_set_tpm_path_constant diff --git a/scripts/install_plugins.sh b/scripts/install_plugins.sh index 29aefe2..0dfa163 100755 --- a/scripts/install_plugins.sh +++ b/scripts/install_plugins.sh @@ -43,10 +43,6 @@ install_plugins() { done } -ensure_tpm_path_exists() { - mkdir -p $SHARED_TPM_PATH -} - verify_tpm_path_permissions() { # check the write permission flag for all users to ensure # that we have proper access diff --git a/scripts/shared_functions.sh b/scripts/shared_functions.sh index 2ac30ec..7053df4 100644 --- a/scripts/shared_functions.sh +++ b/scripts/shared_functions.sh @@ -92,3 +92,7 @@ display_message() { # restores original 'display-time' value tmux set-option -gq display-time "$saved_display_time" } + +ensure_tpm_path_exists() { + mkdir -p "$SHARED_TPM_PATH" +}