diff --git a/modules/wp/set-wallpaper.sh b/modules/wp/set-wallpaper.sh index 34cb54a..965540e 100755 --- a/modules/wp/set-wallpaper.sh +++ b/modules/wp/set-wallpaper.sh @@ -80,7 +80,7 @@ echo "$image" > $current_wallpaper blurred_wp="$static_wallpaper_dir/blurred.jpg" -if [ -x "/usr/bin/magick" ]; then +if command -v magick >/dev/null 2>&1; then magick $image -blur $blur $blurred_wp # echo "magick $image -blur $blur $blurred_wp" else