From f1a9c21d2f9d9fda6821a5e7ca0efd3ea1b32294 Mon Sep 17 00:00:00 2001 From: Francois B Date: Sat, 2 Sep 2017 01:22:34 +0200 Subject: [PATCH] dep check function updated : imagemagick added --- wpfind | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/wpfind b/wpfind index 0091cfa..b8699f6 100755 --- a/wpfind +++ b/wpfind @@ -85,12 +85,17 @@ function timeElapsed () { #beginProcess endProcess #------------------------------------------------------------------------------ # check if detox is installed #------------------------------------------------------------------------------ -function detoxInstalled () { +function depInstalled () { if ! which detox >/dev/null; then printf "$NORMAL""Detox installed : ""$BOLDROUGE""NO""$NORMAL""\n" printf "$NORMAL""Bye...\n""$NORMAL" exit 1 fi + if ! which identify >/dev/null; then + printf "$NORMAL""Imagemagick installed : ""$BOLDROUGE""NO""$NORMAL""\n" + printf "$NORMAL""Bye...\n""$NORMAL" + exit 1 + fi } #------------------------------------------------------------------------------ @@ -158,7 +163,7 @@ function wpFind () { function main() { beginProcess=$($date +'%s') - detoxInstalled + depInstalled printf "$NORMAL""Analyzing...(this may take a (very)(long) while)\n""$NORMAL" #i=0 picmoved=0