mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 13:21:19 +08:00 
			
		
		
		
	sprunge-plugin: Remove the unnecessary while loop.
This commit is contained in:
		
							parent
							
								
									6040d72e2a
								
							
						
					
					
						commit
						54a30c4701
					
				@ -57,8 +57,6 @@ sprunge() {
 | 
			
		||||
	  fi
 | 
			
		||||
	else
 | 
			
		||||
	  echo Using input from a pipe or STDIN redirection... >&2
 | 
			
		||||
	  while IFS= read -r line ; do
 | 
			
		||||
		echo $line
 | 
			
		||||
	  done | curl -F 'sprunge=<-' http://sprunge.us
 | 
			
		||||
	  curl -F 'sprunge=<-' http://sprunge.us
 | 
			
		||||
	fi
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user