diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-09-20 20:28:44 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-09-20 20:28:44 +0000 |
commit | e09e0035a62ce9f8876b6204682bbb3db474d477 (patch) | |
tree | 83d6bd0e5b57eb8c8be84758fa4c4b9e45977d10 | |
parent | ce6d99ccb50350b5f25ae34009a245bd8e22ba4e (diff) |
check INSTALL_DEST_BASE exists earlier rather than later
git-svn-id: svn://localhost/ardour2/branches/3.0@10100 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rwxr-xr-x | tools/linux_packaging/stage2.run | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/linux_packaging/stage2.run b/tools/linux_packaging/stage2.run index a438ea697a..a6dad99093 100755 --- a/tools/linux_packaging/stage2.run +++ b/tools/linux_packaging/stage2.run @@ -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" ]; |