Fix project.script installation
This commit is contained in:
parent
64fc78426d
commit
ad4bcc66cf
|
@ -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())
|
||||||
|
|
Loading…
Reference in a new issue