More work on release.py

This commit is contained in:
cyian-1756 2018-06-07 04:48:43 -04:00
parent 8e4f91ada2
commit 086e52cd65

View File

@ -39,6 +39,7 @@ fileToUploadPath = args.file
InNoninteractiveMode = args.non_interactive
commitMessage = ripmeJson.get("changeList")[0]
debug = args.debug
accessToken = args.token
if not os.path.isfile(fileToUploadPath):
print("[!] Error: {} does not exist".format(fileToUploadPath))
@ -67,8 +68,12 @@ if expectedHash != actualHash:
print("[!] Expected hash is {}".format(expectedHash))
print("[!] Actual hash is {}".format(actualHash))
# Ask the user to review the information before we precede
# This only runs in we're in interactive mode
if not InNoninteractiveMode:
print("File path: {}\n".format(fileToUploadPath))
print("Release title: {}".format(commitMessage))
input("\nPlease review the information above and ensure it is correct and then press enter")
input("\nPlease review the information above and ensure it is correct and then press enter")
print("Accessing github using token")
g = Github(accessToken)