Surround 'cp' arguments with quotes.
patch provided by thefgfseagle@gmail.com.
This commit is contained in:
parent
ce412c5bf1
commit
9d9c6033c2
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ void TGConstruct::AddCustomObjects( void ) {
|
||||||
string command = "copy /Y " + basecom + " " + dest_dir;
|
string command = "copy /Y " + basecom + " " + dest_dir;
|
||||||
#else
|
#else
|
||||||
string basecom = srcbase.utf8Str();
|
string basecom = srcbase.utf8Str();
|
||||||
string command = "cp " + basecom + " " + dest_dir;
|
string command = "cp \"" + basecom + "\" \"" + dest_dir + "\"";
|
||||||
#endif
|
#endif
|
||||||
SG_LOG( SG_GENERAL, SG_DEBUG, "running " << command );
|
SG_LOG( SG_GENERAL, SG_DEBUG, "running " << command );
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue