File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -157,12 +157,12 @@ function import_path() {
157157 if [[ $? -eq 0 && -e " $unixpath " ]]; then
158158 if [[ ! " $winpath " =~ ^" $ENVROOT " \\ .* $ ]] ; then
159159 # If it is not in envroot, it's a generic windows path
160- if [[ ! $winpath =~ ^[-_.:~ \\ a-zA-Z0-9]* $ ]] ; then
160+ if [[ ! $winpath =~ ^[-_.:~ + \\ a-zA-Z0-9]* $ ]] ; then
161161 # Path has forbidden characters, rewrite as short name
162162 # This monster of a command uses the %~s support from cmd.exe to
163163 # reliably convert to short paths on all winenvs.
164164 shortpath=" $( $CMD /q /c for %I in \( " $winpath " \) do echo %~sI 2> /dev/null | tr -d \\ n\\ r)"
165- if [[ ! $shortpath =~ ^[-_.:~\\ a-zA-Z0-9]*$ ]] ; then
165+ if [[ ! $shortpath =~ ^[-_.:~+ \\ a-zA-Z0-9]*$ ]] ; then
166166 if [[ $QUIET != true ]]; then
167167 echo fixpath: failure: Path " ' "$path"' " could not be converted to short path >&2
168168 fi
You can’t perform that action at this time.
0 commit comments