Skip to content

Commit 0601fce

Browse files
authored
Feat wsl1 support (#12)
* fix: support WSL1 in PowerShell * fix: support WSL1 in Batch * feat: WSL1 support for bash script
1 parent 3ffdc7f commit 0601fce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

move-wsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ if [ -z $(wsl --list | iconv -f UTF-16LE -t UTF-8 | grep -E "(^|\s)$WSL_NAME($|\
6969
exit 3
7070
fi
7171

72-
if [ ! -f "$WSL_TARGET/ext4.vhdx" ]; then
73-
echo "ERROR: Import failed. Target file not found. Export file at $TEMP_FILE"
72+
if [ ! -f "$WSL_TARGET/ext4.vhdx" ] && [ ! -d "$WSL_TARGET/rootfs" ]; then
73+
echo "ERROR: Import failed. Target file/folder not found. Export file at $TEMP_FILE"
7474
exit 4
7575
fi
7676

0 commit comments

Comments
 (0)