Commit f7bf8f20 authored by 06kellyjac's avatar 06kellyjac
Browse files

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.
parent bad6031c
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -58,11 +58,14 @@ pkgs.stdenvNoCC.mkDerivation {
    echo "----------------------------------------------------------------"
    exit 1
  '';
  shellHook = ''
    unset shellHook # do not contaminate nested shells
  shellHook =
    let
      command = "hydra-check ${lib.escapeShellArgs packages}";
    in
    ''
      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}"
      echo "${command}"
      ${command}
      exit $?
    '';
}