From d4acc4cd8083c232387c3ebb78178c5032e0b06f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 8 Feb 2025 20:47:01 +0100 Subject: Add SSHEXEC_SSH MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- sshexec.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sshexec.c') diff --git a/sshexec.c b/sshexec.c index 7ed551a..bc02987 100644 --- a/sshexec.c +++ b/sshexec.c @@ -480,8 +480,11 @@ parse_sshexec_options(char *argv[]) end_of_options: /* Parse options and set defaults */ - if (!ssh) - ssh = "ssh"; + if (!ssh) { + ssh = get("SSHEXEC_SSH", ""); + if (!*ssh) + ssh = "ssh"; + } if (!cd) strict_cd = !is_sshcd; -- cgit v1.2.3-70-g09d2