mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
programs/nix-search-tv: add quotes
Add quotes to the preview command to prevent the shell from interpreting options with `<name>` as writing the output of the command name to a file with the name of the remainder of the option name.
This commit is contained in:
parent
c2977f8bca
commit
3c3510e61c
2 changed files with 2 additions and 2 deletions
|
|
@ -72,7 +72,7 @@ in
|
|||
};
|
||||
|
||||
source.command = "${path} print";
|
||||
preview.command = "${path} preview {}";
|
||||
preview.command = ''${path} preview "{}"'';
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
name = "nix-search-tv"
|
||||
|
||||
[preview]
|
||||
command = "${lib.getExe pkgs.nix-search-tv} preview {}"
|
||||
command = "${lib.getExe pkgs.nix-search-tv} preview \"{}\""
|
||||
|
||||
[source]
|
||||
command = "${lib.getExe pkgs.nix-search-tv} print"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue