Fix project.script installation

This commit is contained in:
Scott Wallace 2024-09-27 12:03:05 +01:00
parent 64fc78426d
commit ad4bcc66cf
Signed by: scott
SSH key fingerprint: SHA256:+LJug6Dj01Jdg86CILGng9r0lJseUrpI0xfRqdW9Uws

View file

@ -68,8 +68,6 @@ def display_error(
print(str(error)) print(str(error))
if __name__ == "__main__":
def parseargs() -> argparse.Namespace: def parseargs() -> argparse.Namespace:
""" """
Parse the CLI Parse the CLI
@ -84,6 +82,7 @@ if __name__ == "__main__":
return parser.parse_args() return parser.parse_args()
def main() -> int: def main() -> int:
""" """
Main entrypoint Main entrypoint
@ -187,8 +186,7 @@ if __name__ == "__main__":
f"(Issuer: {cert.issuer})\n" f"(Issuer: {cert.issuer})\n"
"Fingerprint: " "Fingerprint: "
f"{format_fingerprint(cert.get_fingerprint(hashes.SHA1))} (SHA1)" f"{format_fingerprint(cert.get_fingerprint(hashes.SHA1))} (SHA1)"
for cert in list(cert_chain.intermediates) for cert in list(cert_chain.intermediates) + [cert_chain.root]
+ [cert_chain.root]
if cert if cert
] ]
), ),
@ -199,4 +197,6 @@ if __name__ == "__main__":
return 0 return 0
if __name__ == "__main__":
sys.exit(main()) sys.exit(main())