move convert check to more senseful place
This commit is contained in:
parent
6e624c173f
commit
602a6d212e
1 changed files with 8 additions and 7 deletions
|
@ -212,11 +212,7 @@ done
|
||||||
|
|
||||||
|
|
||||||
convertimg() {
|
convertimg() {
|
||||||
if ! command -v convert > /dev/null
|
|
||||||
then
|
|
||||||
message error "${YELLOW}convert${ENDCOLOR} not found"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
if [ -n "$RESIZE" ]
|
if [ -n "$RESIZE" ]
|
||||||
then
|
then
|
||||||
RESIZE="-resize $RESIZE"
|
RESIZE="-resize $RESIZE"
|
||||||
|
@ -475,10 +471,15 @@ case $1 in
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
message "all requirements satisfied ${GREEN}:)${ENDCOLOR}"
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
if ! command -v convert > /dev/null
|
||||||
|
then
|
||||||
|
message error "${YELLOW}convert${ENDCOLOR} not found"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
message "all requirements satisfied ${GREEN}:)${ENDCOLOR}"
|
||||||
floot
|
floot
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
Loading…
Reference in a new issue