From 680f1d09019d8117f1b2c56c7323b5f45dd7b442 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 8 Mar 2017 02:41:21 +0100 Subject: fix --standalone flag --- config/generate-config | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'config/generate-config') diff --git a/config/generate-config b/config/generate-config index 0448910..55cceae 100755 --- a/config/generate-config +++ b/config/generate-config @@ -205,6 +205,14 @@ def main(currency, envname, outdir, exchange_pub, standalone): print("envname {} not supported unless in standalone mode".format(envname)) return + # We have the --standalone option as 0/1 instead of as a flag, + # since this way it's easier to read it from an environment variable + # in shell scripts. + if standalone == "1": + standalone = True + else: + standalone = False + config(currency, envname, exchange_pub, standalone == "1") merchant_wireformats = [ -- cgit v1.2.3