mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08: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:
committed by
Austin Horstman
parent
c2977f8bca
commit
3c3510e61c
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user