Don't strip the leading md5sum char unless its a '\'

master
Beq 2023-05-15 00:26:33 +01:00
parent 615055e6d0
commit 9f1489a794
1 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,8 @@ def get_md5(mdfile):
#split md5sum on space
md5sum = md5sum.split()[0]
#remove leading '\'
md5sum = md5sum[1:]
if md5sum[0] == "\\":
md5sum = md5sum[1:]
print(f"generating md5sum for {mdfile} as {md5sum}")
return md5sum