From: barate Date: Mon, 10 Oct 2011 13:06:58 +0000 (+0000) Subject: Fix bug with dash and env script X-Git-Tag: Before_0020136~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=daef220fd3b7ff58e6d0e7a02feb328949b24566;p=modules%2Fkernel.git Fix bug with dash and env script --- diff --git a/src/Launcher/Launcher_Job_SALOME.cxx b/src/Launcher/Launcher_Job_SALOME.cxx index cffdde757..91d94f1e3 100644 --- a/src/Launcher/Launcher_Job_SALOME.cxx +++ b/src/Launcher/Launcher_Job_SALOME.cxx @@ -76,7 +76,7 @@ Launcher::Job_SALOME::buildSalomeScript(Batch::Parametre params) if (_env_file != "") { std::string::size_type last = _env_file.find_last_of("/"); - launch_script_stream << "source ./" << _env_file.substr(last+1) << std::endl; + launch_script_stream << ". " << _env_file.substr(last+1) << std::endl; } launch_script_stream << "export SALOME_TMP_DIR=" << work_directory << "/logs" << std::endl;