renamed Initialize- to Get- in ps1 script

This commit is contained in:
silverqx
2022-01-22 16:03:51 +01:00
parent 76ad095241
commit dccc30e750
2 changed files with 9 additions and 7 deletions

View File

@@ -100,9 +100,11 @@ This is laravel/framework version, not laravel/laravel version:
- I have cloned repository at - E:\htdocs\laravel-src-master
- based on Laravel v8.26.1
- upgrade to Laravel v8.41.0 ( 15.5.2021, but I didn't merged/reflected new changes to TinyORM )
- upgrade to Laravel v8.80.0 ( 19.1.2021, upgrade from v8.41.0 )
- compare URLs (remove after merge):
- https://github.com/laravel/framework/compare/v8.26.1...v8.41.0
- https://github.com/laravel/framework/compare/v8.41.0...v8.68.1
- https://github.com/laravel/framework/compare/v8.41.0...v8.80.0
Maintenance:
------------

View File

@@ -33,11 +33,11 @@ begin {
. $PSScriptRoot\private\Common.ps1
function Initialize-EnvVariable {
function Get-EnvVariable {
[OutputType([string[]])]
Param()
# Initialize by passed Variable value
# Get by passed Variable value
if ($Variable) {
if ($Variable.StartsWith('env:')) {
return $Variable, ($Variable.TrimStart('env:'))
@@ -48,7 +48,7 @@ begin {
$platform = $PSVersionTable.Platform
# Initialize by platform defaults
# Get by platform defaults
switch ($platform) {
'Win32NT' {
return 'env:Path', 'Path'
@@ -121,7 +121,7 @@ begin {
}
# Obtain paths to add and excluded paths
function Initialize-Paths {
function Get-Paths {
[CmdletBinding(PositionalBinding = $false)]
[OutputType([string[]])]
Param(
@@ -265,7 +265,7 @@ begin {
| Select-Object -ExpandProperty Value
# Obtain paths to add and excluded paths
$pathsToAdd, $pathsExcluded = Initialize-Paths -VariableValue $variableValue
$pathsToAdd, $pathsExcluded = Get-Paths -VariableValue $variableValue
# Nothing to add
if ($pathsToAdd.Length -eq 0) {
@@ -289,7 +289,7 @@ begin {
exit 0
}
$Script:envVariable, $Script:envVariableRaw = Initialize-EnvVariable
$Script:envVariable, $Script:envVariableRaw = Get-EnvVariable
}
process {