mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-30 08:19:54 +00:00
don't crash on missing wsl distro flags - fixes #2744
This commit is contained in:
parent
6e9ac1b59a
commit
11c8ca6582
@ -88,7 +88,7 @@ export class WSLShellProvider extends ShellProvider {
|
||||
if (!childKey.DistributionName) {
|
||||
continue
|
||||
}
|
||||
const wslVersion = childKey.Flags.value & 8 ? 2 : 1
|
||||
const wslVersion = (childKey.Flags?.value || 0) & 8 ? 2 : 1
|
||||
const name = childKey.DistributionName.value
|
||||
const fsBase = wslVersion === 2 ? `\\\\wsl$\\${name}` : childKey.BasePath.value as string + '\\rootfs'
|
||||
const slug = slugify(name, { remove: /[:.]/g })
|
||||
|
Loading…
x
Reference in New Issue
Block a user