mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-09 09:29:17 +00:00
fail if dynvariables cannot be executed successfully
This commit is contained in:
@@ -209,7 +209,12 @@ class CfgYaml:
|
||||
|
||||
# exec dynvariables
|
||||
for k in dvar.keys():
|
||||
allvars[k] = shell(allvars[k])
|
||||
ret, out = shell(allvars[k])
|
||||
if not ret:
|
||||
err = 'command \"{}\" failed: {}'.format(allvars[k], out)
|
||||
self.log.error(err)
|
||||
raise YamlException(err)
|
||||
allvars[k] = out
|
||||
|
||||
if self.debug:
|
||||
self.log.dbg('variables:')
|
||||
|
||||
Reference in New Issue
Block a user