maintainers/scripts/check-hydra-by-maintainer: use hydra-check already in path

No need to use nix-shell too
Also reuse built command for echo and run. Not using `set -x` so
on exit/failure it doesn't continue to print excessive output.
This commit is contained in:
06kellyjac
2025-11-18 10:32:36 +00:00
parent bad6031c0d
commit f7bf8f2095
@@ -58,11 +58,14 @@ pkgs.stdenvNoCC.mkDerivation {
echo "----------------------------------------------------------------"
exit 1
'';
shellHook = ''
unset shellHook # do not contaminate nested shells
echo "Please stand by"
echo nix-shell -p hydra-check --run "hydra-check ${builtins.concatStringsSep " " packages}"
nix-shell -p hydra-check --run "hydra-check ${builtins.concatStringsSep " " packages}"
exit $?
'';
shellHook =
let
command = "hydra-check ${lib.escapeShellArgs packages}";
in
''
echo "Please stand by"
echo "${command}"
${command}
exit $?
'';
}