Update pressure.sh

This commit is contained in:
Dita Aji Pratama 2024-11-11 11:45:12 +07:00
parent 9e949cde56
commit e635b69bda

View File

@ -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>"