Skip to content

Commit b388bc8

Browse files
Merge branch 'release/v1.2.2'
2 parents bfd27d9 + 62a64fe commit b388bc8

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

CHANGELOG.md

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

77
## [Unreleased]
88

9+
## [1.2.2] - 2020-05-09
10+
11+
### Changed
12+
- Updated readme.md reflecting transfer of repo to Github username custom-dev-tools.
13+
- Updated version number.
14+
915
## [1.2.1] - 2019-05-20
1016

1117
### Changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# WampServer PHP CLI Version Changer
22

3-
[![GitHub version](https://img.shields.io/github/tag/midnight-coding/WampServer-PHP-CLI-Version-Changer.svg?label=WampServer-PHP-CLI-Version-Changer&logo=github)](https://github.com/midnight-coding/WampServer-PHP-CLI-Version-Changer/releases) ![Maintained](https://img.shields.io/static/v1.svg?label=maintened&message=yes&color=informational&logo=github) [![Stars](https://img.shields.io/github/stars/midnight-coding/WampServer-PHP-CLI-Version-Changer.svg?color=brightgreen&logo=github)](https://github.com/midnight-coding/WampServer-PHP-CLI-Version-Changer/stargazers)
3+
[![GitHub version](https://img.shields.io/github/tag/custom-dev-tools/WampServer-PHP-CLI-Version-Changer.svg?label=WampServer-PHP-CLI-Version-Changer&logo=github)](https://github.com/custom-dev-tools/WampServer-PHP-CLI-Version-Changer/releases) ![Maintained](https://img.shields.io/static/v1.svg?label=maintened&message=yes&color=informational&logo=github) [![Stars](https://img.shields.io/github/stars/custom-dev-tools/WampServer-PHP-CLI-Version-Changer.svg?color=brightgreen&logo=github)](https://github.com/custom-dev-tools/WampServer-PHP-CLI-Version-Changer/stargazers)
44

5-
[![GitHub License](https://img.shields.io/github/license/midnight-coding/WampServer-PHP-CLI-Version-Changer.svg?color=informational&logo=github)](https://github.com/midnight-coding/WampServer-PHP-CLI-Version-Changer/blob/master/LICENSE-MIT) [![GitHub last commit](https://img.shields.io/github/last-commit/midnight-coding/WampServer-PHP-CLI-Version-Changer.svg?logo=github)](https://github.com/midnight-coding/grunt-cache-killer/commits/master) [![GitHub open issues](https://img.shields.io/github/issues-raw/midnight-coding/WampServer-PHP-CLI-Version-Changer.svg?color=brightgreen&logo=github)](https://github.com/midnight-coding/WampServer-PHP-CLI-Version-Changer/issues?q=is%3Aopen+is%3Aissue) [![GitHub closed issues](https://img.shields.io/github/issues-closed-raw/midnight-coding/WampServer-PHP-CLI-Version-Changer.svg?color=brightgreen&logo=github)](https://github.com/midnight-coding/WampServer-PHP-CLI-Version-Changer/issues?q=is%3Aissue+is%3Aclosed)
5+
[![GitHub License](https://img.shields.io/github/license/custom-dev-tools/WampServer-PHP-CLI-Version-Changer.svg?color=informational&logo=github)](https://github.com/custom-dev-tools/WampServer-PHP-CLI-Version-Changer/blob/master/LICENSE) [![GitHub last commit](https://img.shields.io/github/last-commit/custom-dev-tools/WampServer-PHP-CLI-Version-Changer.svg?logo=github)](https://github.com/custom-dev-tools/WampServer-PHP-CLI-Version-Change/commits/master) [![GitHub open issues](https://img.shields.io/github/issues-raw/custom-dev-tools/WampServer-PHP-CLI-Version-Changer.svg?color=brightgreen&logo=github)](https://github.com/custom-dev-tools/WampServer-PHP-CLI-Version-Changer/issues?q=is%3Aopen+is%3Aissue) [![GitHub closed issues](https://img.shields.io/github/issues-closed-raw/custom-dev-tools/WampServer-PHP-CLI-Version-Changer.svg?color=brightgreen&logo=github)](https://github.com/custom-dev-tools/WampServer-PHP-CLI-Version-Changer/issues?q=is%3Aissue+is%3Aclosed)
66

77
WampServer PHP CLI Version Changer is a Microsoft Windows batch script that allows you to easily change between installed WampServer PHP CLI versions using the users environment 'path' variable.
88

cli_changer.bat

+8-8
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ rem +------------------------------------------------+
2020
rem ---------------------
2121
rem Default Variables
2222
rem ---------------------
23-
set $scriptVersion=1.2.1
23+
set $scriptVersion=1.2.2
2424

2525
set $defaultInstallPath[0]=C:\wamp
2626
set $defaultInstallPath[1]=C:\wamp64
@@ -138,7 +138,7 @@ for /L %%a in (1,1,%$lastUsersEnvironmentalPathArrayId%) do (
138138

139139
rem Iterate through the available PHP versions array.
140140
for /L %%b in (1,1,%$lastAvailablePhpVersionsArrayId%) do (
141-
141+
142142
rem Check if the users environmental path string matches the (combined) full path of the available PHP version string.
143143
if "!$usersEnvironmentalPathArray[%%a]!"=="%$pathToPhpFolders%\!$availablePhpVersionsArray[%%b]!" (
144144
rem Force the 'for' command parameters into type 'integer'.
@@ -164,7 +164,7 @@ if "%~1" neq "" (
164164

165165
rem Iterate through the available PHP versions array.
166166
for /L %%a in (1,1,%$lastAvailablePhpVersionsArrayId%) do (
167-
167+
168168
rem If a matching installed PHP folder name is found, set the new selection id.
169169
if "%1"=="!$availablePhpVersionsArray[%%a]!" (
170170
set $newSelectionId=%%a
@@ -210,7 +210,7 @@ for /L %%a in (1,1,%$lastAvailablePhpVersionsArrayId%) do (
210210

211211
rem Prompt the user to make a new selection.
212212
echo:
213-
set /p $newSelectionId=%backspace% Selection (1-%$lastAvailablePhpVersionsArrayId%):
213+
set /p $newSelectionId=%backspace% Selection (1-%$lastAvailablePhpVersionsArrayId%):
214214
echo:
215215

216216

@@ -241,21 +241,21 @@ set "$usersEnvironmentalPathString="
241241
rem Iterate through the users environmental path array.
242242
for /L %%a in (1,1,%$lastUsersEnvironmentalPathArrayId%) do (
243243

244-
rem Remove any trailing slash.
244+
rem Remove any trailing slash.
245245
if !$usersEnvironmentalPathArray[%%a]:~-1! equ \ (
246246
set $path=!$usersEnvironmentalPathArray[%%a]:~0,-1!
247247
) else (
248248
set $path=!$usersEnvironmentalPathArray[%%a]!
249249
)
250-
250+
251251
rem Get the last segment of the path.
252252
for %%b in (!$path!) do (
253253
set $segment=%%~nxb
254254
)
255-
255+
256256
rem Check the segment for a matching regex expression. IE: Any PHP folder.
257257
echo !$segment! | findstr /R /C:"^php[1-9][0-9]*\.[0-9][0-9]*\.*[0-9]*[0-9]*" >nul
258-
258+
259259
rem If a match is not found, append the path to the users environmental path string.
260260
if !errorlevel! neq 0 (
261261
set $usersEnvironmentalPathString=!$usersEnvironmentalPathString!!$usersEnvironmentalPathArray[%%a]!;

0 commit comments

Comments
 (0)