From 68779da59612dc467425a63f78fb34f5e53af8e0 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Mon, 22 Jun 2020 00:29:09 +0100 Subject: fix(gerrit-cli): don't output the path to SSH if it's on the path Change-Id: Ic5ef3e9ae7984cc6c84ef99553bc94a7d44c3929 Reviewed-on: https://cl.tvl.fyi/c/depot/+/551 Reviewed-by: tazjin --- tools/gerrit-cli.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/gerrit-cli.nix b/tools/gerrit-cli.nix index 05c54da331..1606155a80 100644 --- a/tools/gerrit-cli.nix +++ b/tools/gerrit-cli.nix @@ -4,10 +4,10 @@ pkgs.writeShellScriptBin "gerrit" '' TVL_USERNAME=''${TVL_USERNAME:-$(whoami)} - if which ssh 2>/dev/null; then + if which ssh &>/dev/null; then ssh=ssh else ssh="${pkgs.openssh}/bin/ssh" fi - $ssh $TVL_USERNAME@code.tvl.fyi -p 29418 -- gerrit $@ + exec $ssh $TVL_USERNAME@code.tvl.fyi -p 29418 -- gerrit $@ '' -- cgit 1.4.1