From 78da946a40d5e8a7e190ca0e56f0b1c01f54f429 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Wed, 1 Aug 2012 02:38:54 -0400 Subject: [PATCH] added quick sanity checks to gentextures.sh, to make sure imagemagick and bc are really there. --- gentextures.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gentextures.sh b/gentextures.sh index 5717d91..5bfde7e 100755 --- a/gentextures.sh +++ b/gentextures.sh @@ -1,5 +1,15 @@ #!/bin/bash +if [ -z "`which convert`"] ; then { + echo "Please install Imagemagick." + exit 1 +} + +if [ -z "`which bc`"] ; then { + echo "Please install GNU bc." + exit 1 +} + if [ $1 = "-t" ] ; then { TINT_OVERLAY=$1 BASE=$2