dep check function updated : imagemagick added
This commit is contained in:
parent
7f8c01ef72
commit
f1a9c21d2f
1 changed files with 7 additions and 2 deletions
9
wpfind
9
wpfind
|
@ -85,12 +85,17 @@ function timeElapsed () { #beginProcess endProcess
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# check if detox is installed
|
# check if detox is installed
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
function detoxInstalled () {
|
function depInstalled () {
|
||||||
if ! which detox >/dev/null; then
|
if ! which detox >/dev/null; then
|
||||||
printf "$NORMAL""Detox installed : ""$BOLDROUGE""NO""$NORMAL""\n"
|
printf "$NORMAL""Detox installed : ""$BOLDROUGE""NO""$NORMAL""\n"
|
||||||
printf "$NORMAL""Bye...\n""$NORMAL"
|
printf "$NORMAL""Bye...\n""$NORMAL"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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() {
|
function main() {
|
||||||
beginProcess=$($date +'%s')
|
beginProcess=$($date +'%s')
|
||||||
|
|
||||||
detoxInstalled
|
depInstalled
|
||||||
printf "$NORMAL""Analyzing...(this may take a (very)(long) while)\n""$NORMAL"
|
printf "$NORMAL""Analyzing...(this may take a (very)(long) while)\n""$NORMAL"
|
||||||
#i=0
|
#i=0
|
||||||
picmoved=0
|
picmoved=0
|
||||||
|
|
Loading…
Reference in a new issue