Skip to content

Commit

Permalink
MS Windows: avoid // in path #225
Browse files Browse the repository at this point in the history
  • Loading branch information
mviereck committed Feb 19, 2020
1 parent e05a04a commit 19ab2ef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions x11docker
Original file line number Diff line number Diff line change
Expand Up @@ -6082,7 +6082,6 @@ check_host() { # check host environment
case $Winsubsystem in
MSYS2|CYGWIN)
Winsubmount="$(cygpath.exe -u "c:/" | rmcr | sed s%/c/%%)"
Winsubmount="${Winsubmount%/}"
Winsubpath="$(convertpath unix "$(cygpath.exe -w "/" | rmcr)" )"
Mobyvm="yes"
;;
Expand All @@ -6098,6 +6097,8 @@ check_host() { # check host environment
Winsubpath="$(convertpath unix "$(getwslpath)")"
;;
esac
Winsubmount="${Winsubmount%/}"
Winsubpath="${Winsubpath%/}"
[ "$Winsubsystem" ] && Hostsystem="MSWindows-$Winsubsystem"

[ -z "$Mobyvm" ] && Mobyvm="no"
Expand Down Expand Up @@ -8368,7 +8369,7 @@ Parsed options: $Parsedoptions_global"
bash \$-: $-"
[ "$Winsubsystem" ] && debugnote "
Running on Windows subsystem: $Winsubsystem
Path to subsystem: $(convertpath windows $Winsubpath)
Path to subsystem: $(convertpath windows $Winsubpath)/
Mount path in subsystem: $Winsubmount/
Using MobyVM: $Mobyvm"

Expand Down

0 comments on commit 19ab2ef

Please sign in to comment.