Update pressure.sh
This commit is contained in:
		
							parent
							
								
									9e949cde56
								
							
						
					
					
						commit
						e635b69bda
					
				@ -1,5 +1,13 @@
 | 
				
			|||||||
#!/bin/bash
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Check if ImageMagick is installed
 | 
				
			||||||
 | 
					if ! command -v convert &> /dev/null; then
 | 
				
			||||||
 | 
					    echo "Need ImageMagick as a dependency. Install it with:"
 | 
				
			||||||
 | 
					    echo "  sudo apt-get install imagemagick   # For GNU/Linux"
 | 
				
			||||||
 | 
					    echo "  brew install imagemagick           # For macOS"
 | 
				
			||||||
 | 
					    exit 1
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Check if both directory and quality are provided
 | 
					# Check if both directory and quality are provided
 | 
				
			||||||
if [ -z "$1" ] || [ -z "$2" ]; then
 | 
					if [ -z "$1" ] || [ -z "$2" ]; then
 | 
				
			||||||
    echo "Usage: $0 <directory> <quality>"
 | 
					    echo "Usage: $0 <directory> <quality>"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user