summaryrefslogtreecommitdiff
path: root/branding/scripts/vendorize.py
diff options
context:
space:
mode:
Diffstat (limited to 'branding/scripts/vendorize.py')
-rwxr-xr-xbranding/scripts/vendorize.py6
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)))