Skip to content

Commit

Permalink
Fix download-via-ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Aug 17, 2014
1 parent 3e5dbb2 commit ad71637
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/download-via-ssh/download-via-ssh.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ad71637

Please sign in to comment.