More descriptive error

This commit is contained in:
Mark Hills 2013-05-21 21:38:33 +01:00
parent 53601f6b3a
commit 913728bf97
1 changed files with 5 additions and 0 deletions

View File

@ -43,6 +43,11 @@ fi
FILE="$1" FILE="$1"
shift shift
if ! which gnuplot > /dev/null 2>&1; then
echo "$0: requires gnuplot to be installed" >&1
exit 1
fi
TMP=`mktemp -t bpm.XXXXXX` || exit 1 TMP=`mktemp -t bpm.XXXXXX` || exit 1
trap "rm $TMP" 0 trap "rm $TMP" 0