mirror of
				https://github.com/tmux-plugins/tpm.git
				synced 2025-11-04 08:36:05 +00:00 
			
		
		
		
	Merge pull request #41 from bacondropped/master
Check write permissions to plugin folder
This commit is contained in:
		@@ -47,10 +47,17 @@ ensure_tpm_path_exists() {
 | 
				
			|||||||
	mkdir -p $SHARED_TPM_PATH
 | 
						mkdir -p $SHARED_TPM_PATH
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					verify_tpm_path_permissions() {
 | 
				
			||||||
 | 
						# check the write permission flag for all users to ensure
 | 
				
			||||||
 | 
						# that we have proper access
 | 
				
			||||||
 | 
						[ -w $SHARED_TPM_PATH ] || echo_message "$SHARED_TPM_PATH does not seem to be writable!"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
main() {
 | 
					main() {
 | 
				
			||||||
	reload_tmux_environment
 | 
						reload_tmux_environment
 | 
				
			||||||
	shared_set_tpm_path_constant
 | 
						shared_set_tpm_path_constant
 | 
				
			||||||
	ensure_tpm_path_exists
 | 
						ensure_tpm_path_exists
 | 
				
			||||||
 | 
						verify_tpm_path_permissions
 | 
				
			||||||
	install_plugins
 | 
						install_plugins
 | 
				
			||||||
	reload_tmux_environment
 | 
						reload_tmux_environment
 | 
				
			||||||
	end_message
 | 
						end_message
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user