Fix download-via-ssh

http://hydra.nixos.org/build/13286020
This commit is contained in:
Eelco Dolstra 2014-08-17 14:28:17 +02:00
parent 3e5dbb2433
commit ad716378dc

View file

@ -94,11 +94,13 @@ static void query(std::pair<FdSink, FdSource> & pipes)
int main(int argc, char * * argv) int main(int argc, char * * argv)
{ {
return handleExceptions(argv[0], [&]() { return handleExceptions(argv[0], [&]() {
initNix();
if (argc < 2) if (argc < 2)
throw UsageError("download-via-ssh requires an argument"); throw UsageError("download-via-ssh requires an argument");
initNix();
settings.update();
if (settings.sshSubstituterHosts.empty()) if (settings.sshSubstituterHosts.empty())
return; return;