mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 14:15:46 +01:00
check INSTALL_DEST_BASE exists earlier rather than later
git-svn-id: svn://localhost/ardour2/branches/3.0@10100 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
ce6d99ccb5
commit
e09e0035a6
1 changed files with 10 additions and 10 deletions
|
|
@ -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" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue