From 66e13368942a78cf7636244905bf085b0ca494b2 Mon Sep 17 00:00:00 2001 From: prabatuty Date: Fri, 9 Oct 2009 04:16:49 +0000 Subject: [PATCH] added check for install_dir --- csqlinstallmmdb.ksh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/csqlinstallmmdb.ksh b/csqlinstallmmdb.ksh index bed71460..b81814fb 100755 --- a/csqlinstallmmdb.ksh +++ b/csqlinstallmmdb.ksh @@ -4,6 +4,12 @@ #TODO:validate it is project root by checking some files root_dir=`pwd` install_dir=`grep "prefix =" Makefile|tail -1|awk '{ print $3 }'` +if [ -z "$install_dir" ] +then + echo "install_dir is not set properly." + exit 1 +fi + echo "installdir is ${install_dir}" #cd src/sql #sed -e "s/getc([ ]*yyin[ ]*)/(*lexInput++)/1" dmllex.cxx >tmp.c -- 2.11.4.GIT