mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
Create parent trusted list path before writing
This makes sure that $HOME/.local/share/nix exists before we try to write to it.
This commit is contained in:
parent
fe3a10a9b2
commit
2f63cc02de
1 changed files with 3 additions and 1 deletions
|
@ -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