Merge pull request #4786 from matthewbauer/mkdir-local-share-nix
Create parent for trusted list path before writing
This commit is contained in:
commit
2bb49fb6d0
|
@ -22,7 +22,9 @@ static TrustedList readTrustedList()
|
|||
|
||||
static void writeTrustedList(const TrustedList & trustedList)
|
||||
{
|
||||
writeFile(trustedListPath(), nlohmann::json(trustedList).dump());
|
||||
auto path = trustedListPath();
|
||||
createDirs(dirOf(path));
|
||||
writeFile(path, nlohmann::json(trustedList).dump());
|
||||
}
|
||||
|
||||
void ConfigFile::apply()
|
||||
|
|
Loading…
Reference in a new issue