From 0e04c1f34f41b3391882bf6500b068d4d6082d6f Mon Sep 17 00:00:00 2001 From: Bruno Sutic Date: Sat, 24 May 2014 15:35:36 +0200 Subject: [PATCH] Fix bug: tpm shared path is created before sync --- CHANGELOG.md | 2 ++ scripts/sync_plugins.sh | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d087339..d289048 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,8 @@ ### master - run all *.tmux plugin files as executables - fix all redirects to /dev/null +- fix bug: TPM shared path is created before sync (cloning plugins from github + is done) ### v0.0.1, 2014-05-21 - get TPM up and running diff --git a/scripts/sync_plugins.sh b/scripts/sync_plugins.sh index 633a146..92858f4 100755 --- a/scripts/sync_plugins.sh +++ b/scripts/sync_plugins.sh @@ -73,6 +73,10 @@ sync_plugins() { done } +ensure_tpm_path_exists() { + mkdir -p $SHARED_TPM_PATH +} + reload_tmux_environment() { tmux source-file ~/.tmux.conf >/dev/null 2>&1 } @@ -80,6 +84,7 @@ reload_tmux_environment() { main() { reload_tmux_environment shared_set_tpm_path_constant + ensure_tpm_path_exists sync_plugins reload_tmux_environment end_message