From a924855da0ae413ef80ad38ed045a33144d15dee Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Tue, 17 Sep 2013 17:30:14 +0000 Subject: [PATCH] * more checking in case the user did mess up the cmdline call --- website/scripts/amc.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/scripts/amc.groovy b/website/scripts/amc.groovy index 165c523a..b87b45ad 100644 --- a/website/scripts/amc.groovy +++ b/website/scripts/amc.groovy @@ -13,7 +13,7 @@ if (tryQuietly{ !(ut_state ==~ ut_state_allow) }) { } // check ut mode vs standalone mode -if (args.size() > 0 && (tryQuietly{ ut_dir }?.size() > 0 || tryQuietly{ ut_file }?.size() > 0)) { +if ((args.size() > 0 && (tryQuietly{ ut_dir }?.size() > 0 || tryQuietly{ ut_file }?.size() > 0)) || (args.size() == 0 && (tryQuietly{ ut_dir } == null || tryQuietly{ ut_file } == null))) { throw new Exception("Conflicting arguments: pass in either file arguments or ut_dir/ut_file parameters but not both") }