1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:47:45 +00:00

Meta: Automatically use WSL paths on Windows

This commit is contained in:
Gunnar Beutner 2021-07-10 13:18:39 +02:00
parent 9026dbbfd6
commit ee7e9f05a8
2 changed files with 7 additions and 7 deletions

View file

@ -57,6 +57,13 @@ fi
else
SERENITY_DISK_IMAGE="_disk_image"
fi
if command -v wslpath >/dev/null; then
case "$SERENITY_QEMU_BIN" in
/mnt/c/*)
SERENITY_DISK_IMAGE=$(wslpath -w "$SERENITY_DISK_IMAGE")
;;
esac
fi
}
if ! command -v "$SERENITY_QEMU_BIN" >/dev/null 2>&1 ; then