mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-25 00:26:17 +00:00
Fixed: Removed chmod because useless
This commit is contained in:
parent
ff718f107d
commit
96c970124e
1 changed files with 11 additions and 15 deletions
|
@ -818,21 +818,17 @@ void CPatchManager::createBatchFile(CProductDescriptionForClient &descFile, bool
|
||||||
|
|
||||||
if (useBatchFile)
|
if (useBatchFile)
|
||||||
{
|
{
|
||||||
//write windows .bat format else write sh format
|
// write windows .bat format else write sh format
|
||||||
#ifdef NL_OS_WINDOWS
|
#ifdef NL_OS_WINDOWS
|
||||||
fprintf(fp, ":loop%u\n", nblab);
|
fprintf(fp, ":loop%u\n", nblab);
|
||||||
fprintf(fp, "attrib -r -a -s -h %s\n", DstName.c_str());
|
fprintf(fp, "attrib -r -a -s -h %s\n", DstName.c_str());
|
||||||
fprintf(fp, "del %s\n", DstName.c_str());
|
fprintf(fp, "del %s\n", DstName.c_str());
|
||||||
fprintf(fp, "if exist %s goto loop%u\n", DstName.c_str(), nblab);
|
fprintf(fp, "if exist %s goto loop%u\n", DstName.c_str(), nblab);
|
||||||
fprintf(fp, "move %s %s\n", SrcName.c_str(), DstPath.c_str());
|
fprintf(fp, "move %s %s\n", SrcName.c_str(), DstPath.c_str());
|
||||||
#elif NL_OS_MAC
|
#else
|
||||||
//no patcher on osx
|
fprintf(fp, "rm -rf %s\n", DstName.c_str());
|
||||||
#else
|
fprintf(fp, "mv %s %s\n", SrcName.c_str(), DstPath.c_str());
|
||||||
fprintf(fp, "chmod 777 %s\n", DstName.c_str());
|
#endif
|
||||||
fprintf(fp, "rm -rf %s\n", DstName.c_str());
|
|
||||||
fprintf(fp, "mv %s %s\n", SrcName.c_str(), DstPath.c_str());
|
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue