Execute concatenated command

This commit is contained in:
bom 2022-12-22 22:39:30 +01:00
parent 4c11d31723
commit 759e9d4ebb

View file

@ -42,10 +42,7 @@ class C4kMixin(DevopsBuild):
chmod(self.build_path() + '/out_auth.edn', 0o600) chmod(self.build_path() + '/out_auth.edn', 0o600)
def c4k_apply(self): def c4k_apply(self):
cmd = [f'c4k-{self.c4k_module_name}-standalone.jar', cmd = f'c4k-{self.c4k_module_name}-standalone.jar {self.build_path()}/out_config.edn {self.build_path()}/out_auth.edn > {self.build_path()}/out_{self.c4k_module_name}.yaml'
self.build_path() + '/out_config.edn',
self.build_path() + '/out_auth.edn',
'> ' + self.build_path() + f'/out_{self.c4k_module_name}.yaml']
output = execute(cmd, True) output = execute(cmd, True)
print(output) print(output)
return output return output