From e635b69bda704bb77afb7f157079270ade67c548 Mon Sep 17 00:00:00 2001 From: "Dita Aji Pratama (Home Server)" Date: Mon, 11 Nov 2024 11:45:12 +0700 Subject: [PATCH] Update pressure.sh --- shell/pressure.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/shell/pressure.sh b/shell/pressure.sh index 0eeb142..358eb71 100644 --- a/shell/pressure.sh +++ b/shell/pressure.sh @@ -1,5 +1,13 @@ #!/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 if [ -z "$1" ] || [ -z "$2" ]; then echo "Usage: $0 "