mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 01:24:09 +01:00
maintainers/scripts/check-hydra-by-maintainer: use concatStringsSep
This commit is contained in:
parent
b06542f6a1
commit
ee6a0a11ea
1 changed files with 7 additions and 1 deletions
|
|
@ -71,7 +71,13 @@ pkgs.stdenvNoCC.mkDerivation {
|
|||
# trying to only add spaces as necessary for optional args
|
||||
# with optStr don't need spaces between nix templating
|
||||
optStr = cond: string: lib.optionalString cond "${string} ";
|
||||
command = "hydra-check ${optStr short "--short"}${optStr (extra != "") extra}${lib.escapeShellArgs packages}";
|
||||
args = [
|
||||
"hydra-check"
|
||||
]
|
||||
++ (lib.optional short "--short")
|
||||
++ (lib.optional (extra != "") extra)
|
||||
++ (map lib.escapeShellArg packages);
|
||||
command = lib.concatStringsSep " " args;
|
||||
in
|
||||
''
|
||||
# if user presses ctrl-c during run
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue