From d1aed986215f406c41e332128ade14b2deeeef8a Mon Sep 17 00:00:00 2001 From: Bruno Sutic Date: Tue, 5 Aug 2014 18:11:37 +0200 Subject: [PATCH] Plugin installation does not perform update Plugin installation just installs new plugins. Already installed plugins aren't updated. --- CHANGELOG.md | 2 ++ scripts/sync_plugins.sh | 9 +++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 85349f7..dce6abf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ - remove README 'about' section - move key binding to the main file. Delete `key_binding.sh`. - rename `display_message` -> `echo_message` +- installing plugins installs just new plugins. Already installed plugins aren't + updated. ### v0.0.2, 2014-07-17 - run all *.tmux plugin files as executables diff --git a/scripts/sync_plugins.sh b/scripts/sync_plugins.sh index f2de0f1..0a06f4c 100755 --- a/scripts/sync_plugins.sh +++ b/scripts/sync_plugins.sh @@ -52,14 +52,11 @@ pull_changes() { sync_plugin() { local plugin=$1 if plugin_already_cloned "$plugin"; then - # plugin is already cloned - update it - echo_message "Updating $plugin" - pull_changes "$plugin" && - echo_message " $plugin update success" || - echo_message " $plugin update fail" + # plugin is already installed + echo_message "Already installed $plugin" else # plugin wasn't cloned so far - clone it - echo_message "Downloading $plugin" + echo_message "Installing $plugin" clone_plugin "$plugin" && echo_message " $plugin download success" || echo_message " $plugin download fail"