Fix project.script installation
This commit is contained in:
parent
64fc78426d
commit
ad4bcc66cf
|
@ -68,8 +68,6 @@ def display_error(
|
|||
print(str(error))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
def parseargs() -> argparse.Namespace:
|
||||
"""
|
||||
Parse the CLI
|
||||
|
@ -84,6 +82,7 @@ if __name__ == "__main__":
|
|||
|
||||
return parser.parse_args()
|
||||
|
||||
|
||||
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())
|
||||
|
|
Loading…
Reference in a new issue