mirror of
				https://github.com/tmux-plugins/tpm.git
				synced 2025-11-04 00:16:05 +00:00 
			
		
		
		
	Plugin installation does not perform update
Plugin installation just installs new plugins. Already installed plugins aren't updated.
This commit is contained in:
		@@ -9,6 +9,8 @@
 | 
				
			|||||||
- remove README 'about' section
 | 
					- remove README 'about' section
 | 
				
			||||||
- move key binding to the main file. Delete `key_binding.sh`.
 | 
					- move key binding to the main file. Delete `key_binding.sh`.
 | 
				
			||||||
- rename `display_message` -> `echo_message`
 | 
					- rename `display_message` -> `echo_message`
 | 
				
			||||||
 | 
					- installing plugins installs just new plugins. Already installed plugins aren't
 | 
				
			||||||
 | 
					  updated.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### v0.0.2, 2014-07-17
 | 
					### v0.0.2, 2014-07-17
 | 
				
			||||||
- run all *.tmux plugin files as executables
 | 
					- run all *.tmux plugin files as executables
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -52,14 +52,11 @@ pull_changes() {
 | 
				
			|||||||
sync_plugin() {
 | 
					sync_plugin() {
 | 
				
			||||||
	local plugin=$1
 | 
						local plugin=$1
 | 
				
			||||||
	if plugin_already_cloned "$plugin"; then
 | 
						if plugin_already_cloned "$plugin"; then
 | 
				
			||||||
		# plugin is already cloned - update it
 | 
							# plugin is already installed
 | 
				
			||||||
		echo_message "Updating $plugin"
 | 
							echo_message "Already installed $plugin"
 | 
				
			||||||
		pull_changes "$plugin" &&
 | 
					 | 
				
			||||||
			echo_message "  $plugin update success" ||
 | 
					 | 
				
			||||||
			echo_message "  $plugin update fail"
 | 
					 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
		# plugin wasn't cloned so far - clone it
 | 
							# plugin wasn't cloned so far - clone it
 | 
				
			||||||
		echo_message "Downloading $plugin"
 | 
							echo_message "Installing $plugin"
 | 
				
			||||||
		clone_plugin "$plugin" &&
 | 
							clone_plugin "$plugin" &&
 | 
				
			||||||
			echo_message "  $plugin download success" ||
 | 
								echo_message "  $plugin download success" ||
 | 
				
			||||||
			echo_message "  $plugin download fail"
 | 
								echo_message "  $plugin download fail"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user