Salome HOME
Fix some bashisms and potential errors in generated shell scripts
[tools/libbatch.git] / src / LSF / BatchManager_LSF.cxx
index 3ab7996260b237150d208e3b5b6b85ccf36dfd95..596551cc7ffa0f384b2b4667315fdf236cd81e48 100644 (file)
@@ -219,7 +219,7 @@ namespace Batch {
     tempOutputFile << "cd " << workDir << endl ;
 
     // generate nodes file
-    tempOutputFile << "LIBBATCH_NODEFILE=`mktemp nodefile-XXXXXXXXXX` || exit 1" << endl;
+    tempOutputFile << "LIBBATCH_NODEFILE=$(mktemp nodefile-XXXXXXXXXX) || exit 1" << endl;
     tempOutputFile << "bool=0" << endl;
     tempOutputFile << "for i in $LSB_MCPU_HOSTS; do" << endl;
     tempOutputFile << "  if test $bool = 0; then" << endl;