From: vsr Date: Mon, 11 Mar 2019 14:23:02 +0000 (+0300) Subject: Fix bad 'rm' command's syntax X-Git-Tag: V9_3_0b1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b6f43aeca1d327f478b7895327b95ba797cc64a4;p=modules%2Fkernel.git Fix bad 'rm' command's syntax --- diff --git a/src/Container/Container_i.cxx b/src/Container/Container_i.cxx index 213a778cf..587b07f2e 100644 --- a/src/Container/Container_i.cxx +++ b/src/Container/Container_i.cxx @@ -1864,7 +1864,9 @@ void Engines_Container_i::clearTemporaryFiles() std::string command = "rm -rf "; #endif command += *it; - command += "\" 2>NUL"; +#ifdef WIN32 + command += "\" 2>NUL"; +#endif system( command.c_str() ); } _tmp_files.clear();