check INSTALL_DEST_BASE exists earlier rather than later
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 20 Sep 2011 20:28:44 +0000 (20:28 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 20 Sep 2011 20:28:44 +0000 (20:28 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@10100 d708f5d6-7413-0410-9779-e7cbd77b26cf

tools/linux_packaging/stage2.run

index a438ea697a40dfbf3c3be260ca016f5ad444f8e0..a6dad9909366f61d95861ebd615de988067472f7 100755 (executable)
@@ -183,6 +183,16 @@ esac
 # Check disk space
 ####################
 
+if [ ! -d ${INSTALL_DEST_BASE} ];
+then
+       echo ""
+       echo "!!! ERROR !!! - Installation location ${INSTALL_DEST_BASE} does not exist!"
+       echo "Installation will not complete."
+       echo ""
+       read -p "Press ENTER to exit installer:" BLAH
+       exit 1
+fi
+
 # We have to check the current folder and the INSTALL_DEST_BASE just
 # in case they are on different devices
 echo "Checking for required disk space"
@@ -326,16 +336,6 @@ MENU_FILE_PATH="${INSTALL_DEST_BASE}/${PGM_FULL_NAME}/share"
 # Install bundle and Menu/Link
 ################################
 
-if [ ! -d ${INSTALL_DEST_BASE} ];
-then
-       echo ""
-       echo "!!! ERROR !!! - Installation location ${INSTALL_DEST_BASE} does not exist!"
-       echo "Installation will not complete."
-       echo ""
-       read -p "Press ENTER to exit installer:" BLAH
-       exit 1
-fi
-
 # uninstall any older versions
 UNINSTALLERS=$(find ${INSTALL_DEST_BASE} -maxdepth 1 -type f -name "${PGM_NAME}*.uninstall.sh")
 if [ ! -z "$UNINSTALLERS" ];