mirror of
				https://github.com/tmux-plugins/tpm.git
				synced 2025-11-04 00:16:05 +00:00 
			
		
		
		
	Tests non-existing plugin installation
This commit is contained in:
		@@ -7,7 +7,7 @@ script_run_helper() {
 | 
			
		||||
	local script="$1"
 | 
			
		||||
	local expected_output="$2"
 | 
			
		||||
	local expected_exit_code="${3:-0}"
 | 
			
		||||
	$script |
 | 
			
		||||
	$script 2>&1 |
 | 
			
		||||
		grep "$expected_output" >/dev/null 2>&1 && # grep -q flag quits the script early
 | 
			
		||||
		[ "${PIPESTATUS[0]}" -eq "$expected_exit_code" ]
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user