Fixed: Use parent directories

--HG--
branch : develop
This commit is contained in:
kervala 2016-10-17 16:51:01 +02:00
parent e43551908e
commit f24346486f

View file

@ -19,14 +19,14 @@ SIGNPATH=$CONTENTSPATH/_CodeSignature
# uncompress Ryzom
if [ -e "$ROOTPATH/Ryzom.zip" ]
then
unzip -o "$ROOTPATH/Ryzom.zip" -d "$CONTENTSPATH/.."
unzip -o "$ROOTPATH/Ryzom.zip" -d "$CONTENTSPATH/../.."
fi
# only uncompress Ryzom Installer if found in parent directory
if [ -e "$ROOTPATH/RyzomInstaller.zip" ] && [ -d "$CONTENTSPATH/../../Ryzom Installer.app" ]
if [ -e "$ROOTPATH/RyzomInstaller.zip" ] && [ -d "$CONTENTSPATH/../../../Ryzom Installer.app" ]
then
rm -rf "$CONTENTSPATH/../../Ryzom Installer.app"
unzip -o "$ROOTPATH/RyzomInstaller.zip" -d "$CONTENTSPATH/../.."
rm -rf "$CONTENTSPATH/../../../Ryzom Installer.app"
unzip -o "$ROOTPATH/RyzomInstaller.zip" -d "$CONTENTSPATH/../../.."
fi
exit 0