mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-03 19:28:25 +02:00
fixed check_track_sha1 subprocess.run
This commit is contained in:
parent
d72a1dbaa0
commit
4e6a015f8c
1 changed files with 4 additions and 2 deletions
|
@ -30,7 +30,9 @@ def get_github_file(self, file):
|
|||
return -1
|
||||
|
||||
|
||||
def check_track_sha1(file, excepted_sha1):
|
||||
sha1 = subprocess.run(["./tools/szs/wszst", "SHA1", file]).stdout.decode().split(" ")[0]
|
||||
def check_track_sha1(self, file, excepted_sha1):
|
||||
sha1 = subprocess.run(["./tools/szs/wszst", "SHA1", file, "--autoadd-path", "./file/auto-add/"],
|
||||
check=True, creationflags=CREATE_NO_WINDOW,
|
||||
stdout=subprocess.PIPE).stdout.decode().split(" ")[0]
|
||||
if excepted_sha1 == sha1: return 0
|
||||
else: return -1
|
||||
|
|
Loading…
Reference in a new issue