Fix file type detection on windows

This commit is contained in:
timoxa0 2024-05-07 22:12:55 +05:00
parent d8d72ecd70
commit 73703f3330

View file

@ -73,7 +73,7 @@ def main() -> int:
rootfs = op.abspath(args.RootFS)
try:
if magic.Magic(mime=True).from_file(rootfs) != "application/octet-stream":
if magic.Magic(mime=True).from_file(rootfs) not in ["application/octet-stream", "inode/blockdevice"]:
console.log("Invalid RootFS image")
return 1
except FileNotFoundError: