mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-11 15:13:27 +02:00
Expand vars properly
This commit is contained in:
parent
173ff21d70
commit
c8b417bf4a
@ -77,8 +77,7 @@ def read_config(opts, config_file='config.py'):
|
|||||||
for k, v in config.items():
|
for k, v in config.items():
|
||||||
if type(v) != str:
|
if type(v) != str:
|
||||||
continue
|
continue
|
||||||
if v[0] == '$':
|
config[k] = os.path.expandvars(v)
|
||||||
config[k] = os.environ[v[1:]]
|
|
||||||
|
|
||||||
# Check that commands and binaries do exist
|
# Check that commands and binaries do exist
|
||||||
for key in ('mvn3', 'gradle'):
|
for key in ('mvn3', 'gradle'):
|
||||||
|
Loading…
Reference in New Issue
Block a user