mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-31 04:04:32 +00:00
home-manager: use --argstr for news file paths to handle special chars
Fix #5279 where paths with special characters such as @ break news handling.
This commit is contained in:
parent
f565da89e7
commit
311635a942
1 changed files with 2 additions and 2 deletions
|
@ -791,8 +791,8 @@ function buildNews() {
|
|||
nix-instantiate \
|
||||
--no-build-output --strict \
|
||||
--eval '<home-manager/home-manager/build-news.nix>' \
|
||||
--arg newsJsonFile "\"$(escapeForNix "$newsJsonFile")\"" \
|
||||
--arg newsReadIdsFile "\"$(escapeForNix "$readIdsFile")\"" \
|
||||
--argstr newsJsonFile "\"$(escapeForNix "$newsJsonFile")\"" \
|
||||
--argstr newsReadIdsFile "\"$(escapeForNix "$readIdsFile")\"" \
|
||||
"${extraArgs[@]}" \
|
||||
> "$newsNixFile"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue