diff --git a/lib/scripts/lyxpreview2bitmap.sh b/lib/scripts/lyxpreview2bitmap.sh index dfcd7e9991..3efc75408c 100644 --- a/lib/scripts/lyxpreview2bitmap.sh +++ b/lib/scripts/lyxpreview2bitmap.sh @@ -94,6 +94,11 @@ if [ $# -ne 3 ]; then exit 1 fi +# We use latex, dvips and gs, so check that they're all there. +FIND_IT ${LATEX} +FIND_IT ${DVIPS} +FIND_IT ${GS} + # Extract the params from the argument list. DIR=`dirname $1` BASE=`basename $1 .tex` @@ -111,11 +116,6 @@ else Expected either \"ppm\" or \"png\"." fi -# We use latex, dvips and gs, so check that they're all there. -FIND_IT ${LATEX} -FIND_IT ${DVIPS} -FIND_IT ${GS} - # Initialise some variables. TEXFILE=${BASE}.tex LOGFILE=${BASE}.log