Permalink
Browse files

catch non existant parent director for the installer

  • Loading branch information...
BuzzTroll
BuzzTroll committed Jul 9, 2010
1 parent eb884ef commit 0aab1440819bb444e06ccb309420fb8b82efcee3
Showing with 6 additions and 0 deletions.
  1. +6 −0 install
View
@@ -17,6 +17,12 @@ fi
NIMBUS_REL_BASE_HOME="`dirname $1`"
NIMBUS_BASE_HOME=`cd $NIMBUS_REL_BASE_HOME; pwd`
+
+if [ ! -e $NIMBUS_REL_BASE_HOME ]; then
+ echo "The parent directory for the installation path $1 must exist"
+ exit 1
+fi
+
NIMBUS_INST_DIR=`basename $1`
NIMBUS_HOME="$NIMBUS_BASE_HOME/$NIMBUS_INST_DIR"
echo "NIMBUS_HOME $NIMBUS_HOME"

0 comments on commit 0aab144

Please sign in to comment.