From 3eccf29596f9f68b54a69008a1eae77d2f7f0d9b Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Thu, 7 Jun 2018 06:15:14 -0400 Subject: [PATCH] Script now prints error and exits on hash missmatch --- release.py | 1 + 1 file changed, 1 insertion(+) diff --git a/release.py b/release.py index 31f61217..4217d94c 100644 --- a/release.py +++ b/release.py @@ -68,6 +68,7 @@ if expectedHash != actualHash: print("[!] Error: expected hash of file and actual hash differ") print("[!] Expected hash is {}".format(expectedHash)) print("[!] Actual hash is {}".format(actualHash)) + sys.exit(1) # Ask the user to review the information before we precede # This only runs in we're in interactive mode