Correct case of $PSScriptRoot special variable

This commit is contained in:
xtqqczze 2020-01-13 19:21:53 +00:00
parent 679702ba05
commit 62aee9356a
11 changed files with 12 additions and 12 deletions

View file

@ -498,7 +498,7 @@ Fix steps:
$psVersion = $ReleaseTag
}
else {
$psVersion = git --git-dir="$PSSCriptRoot/.git" describe
$psVersion = git --git-dir="$PSScriptRoot/.git" describe
}
if ($Environment.IsRedHatFamily -or $Environment.IsDebian) {

View file

@ -72,7 +72,7 @@ function Get-LinuxContainer
{
Write-Output @{
Name = $os
Path = "$psscriptroot/../release/$os"
Path = "$PSScriptRoot/../release/$os"
}
}
}
@ -84,7 +84,7 @@ function Get-WindowsContainer
{
Write-Output @{
Name = $os
Path = "$psscriptroot/../release/$os"
Path = "$PSScriptRoot/../release/$os"
}
}
}

View file

@ -1,6 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
. "$psscriptroot/TestRunner.ps1"
. "$PSScriptRoot/TestRunner.ps1"
$assemblyName = "Microsoft.Management.Infrastructure.CimCmdlets"

View file

@ -1,6 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
. "$psscriptroot/TestRunner.ps1"
. "$PSScriptRoot/TestRunner.ps1"
$AssemblyName = "Microsoft.PowerShell.ConsoleHost"

View file

@ -1,6 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
. "$psscriptroot/TestRunner.ps1"
. "$PSScriptRoot/TestRunner.ps1"
$assemblyName = "Microsoft.PowerShell.CoreCLR.Eventing"

View file

@ -1,6 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
. "$psscriptroot/TestRunner.ps1"
. "$PSScriptRoot/TestRunner.ps1"
$AssemblyName = "Microsoft.PowerShell.Commands.Management"
# excluded resources, taken from the 'EmbeddedResource Remove'

View file

@ -1,6 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
. "$psscriptroot/TestRunner.ps1"
. "$PSScriptRoot/TestRunner.ps1"
$AssemblyName = "System.Management.Automation"
# excluded resources, taken from the 'EmbeddedResource Remove'

View file

@ -1,6 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
. "$psscriptroot/TestRunner.ps1"
. "$PSScriptRoot/TestRunner.ps1"
$assemblyName = "Microsoft.PowerShell.Security"

View file

@ -6,7 +6,7 @@ function Test-ResourceStrings
# determine the needed resource directory. If these tests are moved
# this logic will need to change
$repoBase = (Resolve-Path (Join-Path $psScriptRoot ../../../..)).Path
$repoBase = (Resolve-Path (Join-Path $PSScriptRoot ../../../..)).Path
$asmBase = Join-Path $repoBase "src/$AssemblyName"
$resourceDir = Join-Path $asmBase resources
$resourceFiles = Get-ChildItem $resourceDir -Filter *.resx -ErrorAction stop |

View file

@ -1,6 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
. "$psscriptroot/TestRunner.ps1"
. "$PSScriptRoot/TestRunner.ps1"
$AssemblyName = "Microsoft.PowerShell.Commands.Utility"
# excluded resources, taken from the 'EmbeddedResource Remove'

View file

@ -1,6 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
. "$psscriptroot/TestRunner.ps1"
. "$PSScriptRoot/TestRunner.ps1"
$assemblyName = "Microsoft.WSMan.Management"