1
0
Fork 0

Surround 'cp' arguments with quotes.

patch provided by thefgfseagle@gmail.com.
This commit is contained in:
scttgs0 2023-12-10 01:27:49 -06:00
parent ce412c5bf1
commit 9d9c6033c2

View file

@ -102,7 +102,7 @@ void TGConstruct::AddCustomObjects( void ) {
string command = "copy /Y " + basecom + " " + dest_dir;
#else
string basecom = srcbase.utf8Str();
string command = "cp " + basecom + " " + dest_dir;
string command = "cp \"" + basecom + "\" \"" + dest_dir + "\"";
#endif
SG_LOG( SG_GENERAL, SG_DEBUG, "running " << command );