diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-17T12·28+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-17T12·28+0200 |
commit | ad716378dc19c9e5282ce2de77a323a8d4178cd0 (patch) | |
tree | dbbd4e97c33230c6a333ec7e4e3c1ecfff9c6150 /src | |
parent | 3e5dbb24337d8416cfe46484eb2692811546a9c1 (diff) |
Fix download-via-ssh
http://hydra.nixos.org/build/13286020
Diffstat (limited to 'src')
-rw-r--r-- | src/download-via-ssh/download-via-ssh.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/download-via-ssh/download-via-ssh.cc b/src/download-via-ssh/download-via-ssh.cc index ac0f5826dd28..3f6f07f87d8b 100644 --- a/src/download-via-ssh/download-via-ssh.cc +++ b/src/download-via-ssh/download-via-ssh.cc @@ -94,11 +94,13 @@ static void query(std::pair<FdSink, FdSource> & pipes) int main(int argc, char * * argv) { return handleExceptions(argv[0], [&]() { - initNix(); - if (argc < 2) throw UsageError("download-via-ssh requires an argument"); + initNix(); + + settings.update(); + if (settings.sshSubstituterHosts.empty()) return; |