Skip to content

Commit

Permalink
remove usage of wslvar/wslu
Browse files Browse the repository at this point in the history
  • Loading branch information
sakai135 committed Mar 10, 2023
1 parent 2071ac0 commit 8cd2188
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion import.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8cd2188

Please sign in to comment.