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