mirror of
				https://github.com/tmux-plugins/tmux-continuum.git
				synced 2025-11-04 08:36:09 +00:00 
			
		
		
		
	Properly quote scripts
This commit is contained in:
		@@ -1,6 +1,7 @@
 | 
				
			|||||||
# Changelog
 | 
					# Changelog
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### master
 | 
					### master
 | 
				
			||||||
 | 
					- properly quote scripts
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### v3.0.0, 2015-02-20
 | 
					### v3.0.0, 2015-02-20
 | 
				
			||||||
- rename the plugin from `tmux-resurrect-auto` to `tmux-continuum`
 | 
					- rename the plugin from `tmux-resurrect-auto` to `tmux-continuum`
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,11 +9,11 @@ source "$CURRENT_DIR/scripts/shared.sh"
 | 
				
			|||||||
save_command_interpolation="#($CURRENT_DIR/scripts/continuum_save.sh)"
 | 
					save_command_interpolation="#($CURRENT_DIR/scripts/continuum_save.sh)"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
supported_tmux_version_ok() {
 | 
					supported_tmux_version_ok() {
 | 
				
			||||||
	$CURRENT_DIR/scripts/check_tmux_version.sh "$SUPPORTED_VERSION"
 | 
						"$CURRENT_DIR/scripts/check_tmux_version.sh" "$SUPPORTED_VERSION"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
handle_tmux_automatic_start() {
 | 
					handle_tmux_automatic_start() {
 | 
				
			||||||
	$CURRENT_DIR/scripts/handle_tmux_automatic_start.sh
 | 
						"$CURRENT_DIR/scripts/handle_tmux_automatic_start.sh"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
another_tmux_server_running() {
 | 
					another_tmux_server_running() {
 | 
				
			||||||
@@ -49,7 +49,7 @@ just_started_tmux_server() {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
start_auto_restore_in_background() {
 | 
					start_auto_restore_in_background() {
 | 
				
			||||||
	$CURRENT_DIR/scripts/continuum_restore.sh &
 | 
						"$CURRENT_DIR/scripts/continuum_restore.sh" &
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
main() {
 | 
					main() {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,7 @@ source "$CURRENT_DIR/variables.sh"
 | 
				
			|||||||
source "$CURRENT_DIR/shared.sh"
 | 
					source "$CURRENT_DIR/shared.sh"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
supported_tmux_version_ok() {
 | 
					supported_tmux_version_ok() {
 | 
				
			||||||
	$CURRENT_DIR/check_tmux_version.sh "$SUPPORTED_VERSION"
 | 
						"$CURRENT_DIR/check_tmux_version.sh" "$SUPPORTED_VERSION"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
get_interval() {
 | 
					get_interval() {
 | 
				
			||||||
@@ -29,7 +29,7 @@ enough_time_since_last_run_passed() {
 | 
				
			|||||||
fetch_and_run_tmux_resurrect_save_script() {
 | 
					fetch_and_run_tmux_resurrect_save_script() {
 | 
				
			||||||
	local resurrect_save_script_path="$(get_tmux_option "$resurrect_save_path_option" "")"
 | 
						local resurrect_save_script_path="$(get_tmux_option "$resurrect_save_path_option" "")"
 | 
				
			||||||
	if [ -n "$resurrect_save_script_path" ]; then
 | 
						if [ -n "$resurrect_save_script_path" ]; then
 | 
				
			||||||
		$resurrect_save_script_path "quiet" >/dev/null 2>&1 &
 | 
							"$resurrect_save_script_path" "quiet" >/dev/null 2>&1 &
 | 
				
			||||||
		set_last_save_timestamp
 | 
							set_last_save_timestamp
 | 
				
			||||||
	fi
 | 
						fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -17,11 +17,11 @@ is_osx() {
 | 
				
			|||||||
main() {
 | 
					main() {
 | 
				
			||||||
	if is_tmux_automatic_start_enabled; then
 | 
						if is_tmux_automatic_start_enabled; then
 | 
				
			||||||
		if is_osx; then
 | 
							if is_osx; then
 | 
				
			||||||
			$CURRENT_DIR/handle_tmux_automatic_start/osx_enable.sh
 | 
								"$CURRENT_DIR/handle_tmux_automatic_start/osx_enable.sh"
 | 
				
			||||||
		fi
 | 
							fi
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
		if is_osx; then
 | 
							if is_osx; then
 | 
				
			||||||
			$CURRENT_DIR/handle_tmux_automatic_start/osx_disable.sh
 | 
								"$CURRENT_DIR/handle_tmux_automatic_start/osx_disable.sh"
 | 
				
			||||||
		fi
 | 
							fi
 | 
				
			||||||
	fi
 | 
						fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user