From 68bdf834ee7fe4208f287aa5d14f86e50086de1a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 15 Feb 2020 16:40:16 +0100 Subject: [PATCH] Fix hydra-evaluator --unlock --- src/hydra-evaluator/hydra-evaluator.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/hydra-evaluator/hydra-evaluator.cc b/src/hydra-evaluator/hydra-evaluator.cc index 9bee8ce7..fd9eb9d7 100644 --- a/src/hydra-evaluator/hydra-evaluator.cc +++ b/src/hydra-evaluator/hydra-evaluator.cc @@ -361,14 +361,15 @@ int main(int argc, char * * argv) return true; }); - if (!args.empty()) { - if (args.size() != 2) throw UsageError("Syntax: hydra-evaluator [ ]"); - evaluator.evalOne = JobsetName(args[0], args[1]); - } if (unlock) evaluator.unlock(); - else + else { + if (!args.empty()) { + if (args.size() != 2) throw UsageError("Syntax: hydra-evaluator [ ]"); + evaluator.evalOne = JobsetName(args[0], args[1]); + } evaluator.run(); + } }); }