Only return if --save-config is specified

Continue running commands if login was forced due to missing configuration
Allow downloading of files even if config is missing with only one prompt
for username and password
This commit is contained in:
Sandy Carter 2015-08-17 19:27:23 -04:00
parent a066e99bad
commit 9c2f35bb27

View File

@ -491,7 +491,8 @@ int main(int argc, char *argv[])
}
ofs.close();
Util::setFilePermissions(config.sConfigFilePath, boost::filesystem::owner_read | boost::filesystem::owner_write);
return 0;
if (config.bSaveConfig)
return 0;
}
else
{
@ -519,7 +520,7 @@ int main(int argc, char *argv[])
return 1;
}
}
else if (config.bShowWishlist)
if (config.bShowWishlist)
downloader.showWishlist();
else if (config.bUpdateCache)
downloader.updateCache();