mirror of
				https://github.com/tmux-plugins/tpm.git
				synced 2025-11-04 00:16:05 +00:00 
			
		
		
		
	Extract 'ensure_tpm_path_exists' function
This commit is contained in:
		@@ -25,10 +25,6 @@ clean_plugins() {
 | 
				
			|||||||
	done
 | 
						done
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ensure_tpm_path_exists() {
 | 
					 | 
				
			||||||
	mkdir -p "$SHARED_TPM_PATH"
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
main() {
 | 
					main() {
 | 
				
			||||||
	reload_tmux_environment
 | 
						reload_tmux_environment
 | 
				
			||||||
	shared_set_tpm_path_constant
 | 
						shared_set_tpm_path_constant
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -43,10 +43,6 @@ install_plugins() {
 | 
				
			|||||||
	done
 | 
						done
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ensure_tpm_path_exists() {
 | 
					 | 
				
			||||||
	mkdir -p $SHARED_TPM_PATH
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
verify_tpm_path_permissions() {
 | 
					verify_tpm_path_permissions() {
 | 
				
			||||||
	# check the write permission flag for all users to ensure
 | 
						# check the write permission flag for all users to ensure
 | 
				
			||||||
	# that we have proper access
 | 
						# that we have proper access
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -92,3 +92,7 @@ display_message() {
 | 
				
			|||||||
	# restores original 'display-time' value
 | 
						# restores original 'display-time' value
 | 
				
			||||||
	tmux set-option -gq display-time "$saved_display_time"
 | 
						tmux set-option -gq display-time "$saved_display_time"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ensure_tpm_path_exists() {
 | 
				
			||||||
 | 
						mkdir -p "$SHARED_TPM_PATH"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user