mirror of
https://github.com/nzbget/nzbget.git
synced 2026-04-25 23:36:54 -04:00
#136: fixed: scripts were not found
This commit is contained in:
@@ -301,7 +301,7 @@ void ScriptConfig::LoadScriptDir(Scripts* scripts, const char* directory, bool i
|
||||
{
|
||||
if (filename[0] != '.' && filename[0] != '_')
|
||||
{
|
||||
BString<1024> fullFilename("%s%s", directory, filename);
|
||||
BString<1024> fullFilename("%s%c%s", directory, PATH_SEPARATOR, filename);
|
||||
|
||||
if (!FileSystem::DirectoryExists(fullFilename))
|
||||
{
|
||||
@@ -375,7 +375,6 @@ void ScriptConfig::LoadScriptDir(Scripts* scripts, const char* directory, bool i
|
||||
}
|
||||
else if (!isSubDir)
|
||||
{
|
||||
fullFilename.Format("%s%s%c", directory, filename, PATH_SEPARATOR);
|
||||
LoadScriptDir(scripts, fullFilename, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user