Allow .hfs files outside 4.hfs

This commit is contained in:
CorpNewt 2019-01-31 22:47:55 -06:00 committed by GitHub
parent 2cdf231fd8
commit 122fa6b540
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -362,7 +362,7 @@ class WinUSB:
self.select_package(disk)
return
# Got the package - let's make sure it's named right - just in case
if os.path.basename(path).lower() == "4.hfs":
if os.path.basename(path).lower().endswith(".hfs"):
# We have an hfs image already - bypass extraction
self.dd_image(disk, path)
return