Extract 'ensure_tpm_path_exists' function

pull/45/merge
Bruno Sutic 8 years ago
parent a83329b5ab
commit a51fb24f62
No known key found for this signature in database
GPG Key ID: 66D96E4F2F7EF26C
  1. 4
      scripts/clean_plugins.sh
  2. 4
      scripts/install_plugins.sh
  3. 4
      scripts/shared_functions.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

@ -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

@ -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"
}

Loading…
Cancel
Save