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:
@@ -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 $?
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user