Skip to content

Execute fail when you has just one distro #37

Open
@pengchx

Description

@pengchx

Describe the bug
A clear and concise description of what the bug is.
When one distro, variable distroList seems can not parse success.
Please add terminal output if possible:
Getting distros...
Select distro to move:
1: U
1
Enter WSL target directory:
D:\Ubuntu
Move U to "D:\Ubuntu"? (Y|n): y
Exporting VHDX to "D:\Ubuntu\U.tar" ...
There is no distribution with the supplied name.
Error code: Wsl/Service/WSL_E_DISTRO_NOT_FOUND
D:\Downloads\move-wsl-1.4.0\move-wsl-1.4.0\move-wsl.ps1 : ERROR: Export failed
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,move-wsl.ps1

Cleaning up ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions