Fixed: Spaces in paths for patch under Linux and OS X

This commit is contained in:
kervala 2016-10-31 18:58:49 +01:00
parent b85b3130f9
commit f3fd8519a8

View file

@ -897,10 +897,10 @@ void CPatchManager::createBatchFile(CProductDescriptionForClient &descFile, bool
contentPrefix += "set SHARDID=%7\n";
#else
contentPrefix += "#!/bin/sh\n";
contentPrefix += "export RYZOM_CLIENT=$1\n";
contentPrefix += "export UNPACKPATH=$2\n";
contentPrefix += "export ROOTPATH=$3\n";
contentPrefix += "export STARTUPPATH=$4\n";
contentPrefix += "export RYZOM_CLIENT=\"$1\"\n";
contentPrefix += "export UNPACKPATH=\"$2\"\n";
contentPrefix += "export ROOTPATH=\"$3\"\n";
contentPrefix += "export STARTUPPATH=\"$4\"\n";
contentPrefix += toString("export UPGRADE_FILE=$ROOTPATH/%s\n", UpgradeBatchFilename.c_str());
contentPrefix += "\n";
contentPrefix += "LOGIN=$5\n";