From 7b67b6ad7cc9963db75eb3926ded4a4006c3e81a Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 27 Feb 2016 18:33:59 +0100 Subject: [PATCH] Fixed: Use export under UNIX to make variables available in upgd_nl.sh too --- code/ryzom/client/src/login_patch.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/code/ryzom/client/src/login_patch.cpp b/code/ryzom/client/src/login_patch.cpp index e3474ed7d..70f45aeff 100644 --- a/code/ryzom/client/src/login_patch.cpp +++ b/code/ryzom/client/src/login_patch.cpp @@ -919,12 +919,13 @@ void CPatchManager::createBatchFile(CProductDescriptionForClient &descFile, bool contentPrefix += "set LOGIN=%4\n"; contentPrefix += "set PASSWORD=%5\n"; contentPrefix += "set SHARDID=%6\n"; - contentPrefix += toString("set UPGRADE_FILE=\"%%ROOTPATH%%\\%s\"\n", UpgradeBatchFilename.c_str()); #else contentPrefix += "#!/bin/sh\n"; - contentPrefix += "RYZOM_CLIENT=\"$1\"\n"; - contentPrefix += "UNPACKPATH=\"$2\"\n"; - contentPrefix += "ROOTPATH=\"$3\"\n"; + contentPrefix += "export RYZOM_CLIENT=$1\n"; + contentPrefix += "export UNPACKPATH=$2\n"; + contentPrefix += "export ROOTPATH=$3\n"; + contentPrefix += toString("export UPGRADE_FILE=$ROOTPATH/%s\n", UpgradeBatchFilename.c_str()); + contentPrefix += "\n"; contentPrefix += "LOGIN=$4\n"; contentPrefix += "PASSWORD=$5\n"; contentPrefix += "SHARDID=$6\n";