summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-09-21 20:06:42 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-09-21 20:06:42 +0000
commit574f2ec7b777c839d8bc73938e8789ca777a1114 (patch)
treee5cdde005058c55ec6fc7f56c8a5fbf7a5311e02
parent09231489bd280943eaac851a6c621af0405c2f30 (diff)
check install dir before anything else
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@10113 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rwxr-xr-xtools/linux_packaging/stage2.run24
1 files changed, 14 insertions, 10 deletions
diff --git a/tools/linux_packaging/stage2.run b/tools/linux_packaging/stage2.run
index f6a78776fe..34c8c22db2 100755
--- a/tools/linux_packaging/stage2.run
+++ b/tools/linux_packaging/stage2.run
@@ -108,6 +108,20 @@ echo ""
echo "Welcome to the ${PGM_NAME} installer"
echo ""
+###############################
+# Check for install destination
+###############################
+
+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
+
#############################
# Check for root privileges
#############################
@@ -326,16 +340,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" ];