diff --git a/import.sh b/import.sh index 238992c..d047286 100755 --- a/import.sh +++ b/import.sh @@ -3,7 +3,8 @@ # run from repo root # ./import.sh -USERPROFILE=$(wslvar USERPROFILE) +CMDSHELL="$(command -v cmd.exe || echo '/mnt/c/Windows/system32/cmd.exe')" +USERPROFILE="$($CMDSHELL /d /v:off /c 'echo | set /p t=%USERPROFILE%' 2>/dev/null)" DUMP=wsl-vpnkit.tar.gz # build if necessary