maintainers/scripts/check-hydra-by-maintainer: use concatStringsSep

This commit is contained in:
06kellyjac 2025-11-18 10:30:33 +00:00
parent b06542f6a1
commit ee6a0a11ea

View file

@ -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