mirror of
https://github.com/truenas/scale-build.git
synced 2025-12-20 02:49:28 +00:00
Allow conditional consideration of specified sources for building/checkout
This commit is contained in:
@@ -7,7 +7,10 @@ _VERS = '22.12-MASTER'
|
||||
|
||||
|
||||
def get_env_variable(key, _type, default_value=None):
|
||||
value = environ.get(key)
|
||||
return get_normalized_value(environ.get(key), _type, default_value)
|
||||
|
||||
|
||||
def get_normalized_value(value, _type, default_value=None):
|
||||
if value:
|
||||
if _type == bool:
|
||||
if value.isdigit():
|
||||
|
||||
Reference in New Issue
Block a user