diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2019-07-09 18:20:10 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2019-08-05 11:46:08 -0400 |
commit | d33a4a041ab5d9e11e127d8a0e18205f97f4cabd (patch) | |
tree | 12af59a68733e664896cbd32848310014c8589f6 /branding/scripts/vendorize.py | |
parent | ebe7e3e10485ea69ca5726117c643b8851ba45f9 (diff) |
[feat] allow overriding of PROVIDER_CONFIG
Diffstat (limited to 'branding/scripts/vendorize.py')
-rwxr-xr-x | branding/scripts/vendorize.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/branding/scripts/vendorize.py b/branding/scripts/vendorize.py index c600967..dc19952 100755 --- a/branding/scripts/vendorize.py +++ b/branding/scripts/vendorize.py @@ -88,6 +88,12 @@ if __name__ == "__main__": except IndexError: bail() + env_provider_conf = os.environ.get('PROVIDER_CONFIG') + if env_provider_conf: + if os.path.isfile(env_provider_conf): + print("[+] Overriding provider config per PROVIDER_CONFIG variable") + configfile = env_provider_conf + if not os.path.isfile(infile): bail('[!] Cannot find template in {path}'.format( path=os.path.abspath(infile))) |