aboutsummaryrefslogtreecommitdiffstats
path: root/sshexec.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sshexec.c7
1 files changed, 5 insertions, 2 deletions
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;