nix-community / impermanence

Modules to help you handle persistent state on systems with ephemeral root storage [maintainer=@talyz]
MIT License
1.09k stars 80 forks source link

nixos: Fix the path splitting in create-directories.bash #75

Closed talyz closed 2 years ago

talyz commented 2 years ago

Paths are currently split on bash's default delimiters (space, tab and newline) with slashes converted to space. This means paths containing any such delimiters are incorrectly handled, as @etu reported here: https://github.com/nix-community/impermanence/issues/74#issuecomment-1027643883.

Fix this by temporarily replacing bash's default delimiters with /, making sure this is the only character we split on.