From f8ae555285bff1fc24d145b2ee980a9bbb866dbf Mon Sep 17 00:00:00 2001 From: MakiseKurisu Date: Sat, 27 Jul 2024 16:41:59 +0800 Subject: [PATCH] fix: create directory with absolute path --- openwrt/etc.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openwrt/etc.nix b/openwrt/etc.nix index fa8566a..a27a034 100644 --- a/openwrt/etc.nix +++ b/openwrt/etc.nix @@ -43,7 +43,7 @@ in (lib.mapAttrsToList (name: file: lib.optionalString (file.enable) '' ${lib.optionalString (dirOf name != ".") '' - mkdir -p ${lib.escapeShellArg (dirOf name)} + mkdir -p ${lib.escapeShellArg (dirOf "/etc/${name}")} ''} echo ${lib.escapeShellArg file.text} >${lib.escapeShellArg "/etc/${name}"} '')