Skip to content

Commit

Permalink
convertpath(): replace // with / #424
Browse files Browse the repository at this point in the history
  • Loading branch information
mviereck committed Mar 21, 2022
1 parent a5e44cf commit db6be1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x11docker
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# Run 'x11docker --help' or scroll down to read usage information.
# More documentation at: https://github.com/mviereck/x11docker

Version="7.1.4-beta-6"
Version="7.1.4-beta-7"

# --enforce-i: Enforce running in interactive mode to allow commands tty and weston-launch in special setups.
grep -q -- "--enforce-i" <<< "$*" && case $- in
Expand Down Expand Up @@ -1088,8 +1088,8 @@ convertpath() { # convert unix and windows paths
return 0
}

# replace \ with /
Path="$(tr '\\' '/' <<< "$Path")"
# replace \ with / and // with /
Path="$(tr '\\' '/' <<< "$Path" | sed 's%//%/%g')"

# remove possible already given mountpoint
Path="${Path#$Winsubmount}"
Expand Down

0 comments on commit db6be1e

Please sign in to comment.