Skip to content

Commit

Permalink
fix: create directory with absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
MakiseKurisu committed Jul 27, 2024
1 parent 7960e70 commit f8ae555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openwrt/etc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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}"}
'')
Expand Down

0 comments on commit f8ae555

Please sign in to comment.