diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-03-20T14·30+0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-03-20T14·30+0100 |
commit | 21ebf6a16028291914bd14b0e5463b020dc7affa (patch) | |
tree | 16314463925fea37d390ac4effdf7cbf7a4befa7 /src | |
parent | 1aca195e52d4fbf76908e6588b55ed8b5b25cfc8 (diff) |
SSHMaster: Optionally pass -v to ssh
Diffstat (limited to 'src')
-rw-r--r-- | src/libstore/ssh.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstore/ssh.cc b/src/libstore/ssh.cc index 7ff7a9bffc49..033c580936ad 100644 --- a/src/libstore/ssh.cc +++ b/src/libstore/ssh.cc @@ -49,6 +49,8 @@ std::unique_ptr<SSHMaster::Connection> SSHMaster::startCommand(const std::string addCommonSSHOpts(args); if (socketPath != "") args.insert(args.end(), {"-S", socketPath}); + if (verbosity >= lvlChatty) + args.push_back("-v"); args.push_back(command); execvp(args.begin()->c_str(), stringsToCharPtrs(args).data()); @@ -93,6 +95,8 @@ Path SSHMaster::startMaster() , "-o", "LocalCommand=echo started" , "-o", "PermitLocalCommand=yes" }; + if (verbosity >= lvlChatty) + args.push_back("-v"); addCommonSSHOpts(args); execvp(args.begin()->c_str(), stringsToCharPtrs(args).data()); |