Simpler sha calc command

This commit is contained in:
erik 2023-08-11 14:35:52 +02:00
parent 369f62ff38
commit 935baa9932

View file

@ -232,5 +232,6 @@ class ArtifactDeploymentApi:
+ f'-F "attachment=@{attachment};type={attachment_type}"')
def calculate_checksums(self, artifact_path: str):
self.execution_api.execute(f"find {artifact_path} -type f -exec sha256sum {{}}; | sort > {artifact_path} sha256sum.lst")
self.execution_api.execute(f"find {artifact_path} -type f -exec sha512sum {{}}; | sort > {artifact_path} sha512sum.lst")
# self.execution_api.execute(f"find {artifact_path} -type f -exec sha256sum {{}}; | sort > {artifact_path} sha256sum.lst") relevant für provs
self.execution_api(f"sha256sum {artifact_path} > {artifact_path}.sha256",)
self.execution_api(f"sha512sum {artifact_path} > {artifact_path}.sha512",)