Skip to content

Commit ee197b2

Browse files
Merge branch 'hotfix/path-to-php-folders-backslash'
2 parents c330ede + 441158b commit ee197b2

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
66

77
## [Unreleased]
88

9+
## [1.1.1] - 2018-12-23
10+
11+
### Fixed
12+
- Fixed missing directory separator between path to php folders and currently / newly selected php version folder(s).
13+
914
## [1.1.0] - 2018-08-24
1015

1116
### Added

cli_changer.bat

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ for /L %%a in (1,1,%$lastUsersEnvironmentalPathArrayId%) do (
138138
rem Loop through the $availablePhpVersionsArray.
139139
for /L %%b in (1,1,%$lastAvailablePhpVersionsArrayId%) do (
140140
rem Check if the users environmental path string matches the path to the available PHP version string.
141-
if "!$usersEnvironmentalPathArray[%%a]!"=="%$pathToPhpFolders%!$availablePhpVersionsArray[%%b]!" (
141+
if "!$usersEnvironmentalPathArray[%%a]!"=="%$pathToPhpFolders%\!$availablePhpVersionsArray[%%b]!" (
142142
rem Force the 'for' command parameters into type 'integer'.
143143
set /A $currentPhpVersionId=currentPhpVersionId+%%b
144144
set /A $currentUserEnvPathId=$currentUserEnvPathId+%%a
@@ -238,7 +238,7 @@ for /L %%a in (1,1,%$lastUsersEnvironmentalPathArrayId%) do (
238238
)
239239

240240
rem Add the selected PHP folder path to the end of the $usersEnvironmentalPathString.
241-
set $result=%$result%%$pathToPhpFolders%!$availablePhpVersionsArray[%$newSelectionId%]!
241+
set $result=%$result%%$pathToPhpFolders%\!$availablePhpVersionsArray[%$newSelectionId%]!
242242

243243
rem Set the $usersEnvironmentalPathString.
244244
setx path "%$result%" >nul

0 commit comments

Comments
 (0)