@@ -36,22 +36,22 @@ cmdlet also generates an error for each missing file.
3636### Example 1: Test a manifest
3737
3838``` powershell
39- Test-ModuleManifest -Path "$pshome \Modules\TestModule.psd1"
39+ Test-ModuleManifest -Path "$PSHOME \Modules\TestModule.psd1"
4040```
4141
4242This command tests the ` TestModule.psd1 ` module manifest.
4343
4444### Example 2: Test a manifest by using the pipeline
4545
4646``` powershell
47- "$pshome \Modules\TestModule.psd1" | test-modulemanifest
47+ "$PSHOME \Modules\TestModule.psd1" | test-modulemanifest
4848```
4949
5050``` Output
5151Test-ModuleManifest : The specified type data file 'C:\Windows\System32\Wi
5252ndowsPowerShell\v1.0\Modules\TestModule\TestTypes.ps1xml' could not be processed because the file was not found. Please correct the path and try again.
5353At line:1 char:34
54- + "$pshome \Modules\TestModule.psd1" | test-modulemanifest <<<<
54+ + "$PSHOME \Modules\TestModule.psd1" | test-modulemanifest <<<<
5555+ CategoryInfo : ResourceUnavailable: (C:\Windows\System32\WindowsPowerShell\v1.0\Modules\TestModule\TestTypes.ps1xml:String) [Test-ModuleManifest], FileNotFoundException
5656+ FullyQualifiedErrorId : Modules_TypeDataFileNotFound,Microsoft.PowerShell.Commands.TestModuleManifestCommandName
5757
@@ -87,7 +87,7 @@ function Test-ManifestBool ($path)
8787```
8888
8989This function is like ` Test-ModuleManifest ` , but it returns a Boolean value. The function returns
90- ` $True ` if the manifest passed the test and ` $false ` otherwise.
90+ ` $true ` if the manifest passed the test and ` $false ` otherwise.
9191
9292The function uses the Get-ChildItem cmdlet, alias = dir, to get the module manifest specified by the
9393` $path ` variable. The command uses a pipeline operator (` | ` ) to pass the file object to
@@ -99,7 +99,7 @@ object that `Test-ModuleManifest` returns in the $a variable. Therefore, the obj
9999displayed.
100100
101101Then, in a separate command, the function displays the value of the ` $? ` automatic variable. If the
102- previous command generates no error, the command displays ` $True ` , and ` $false ` otherwise.
102+ previous command generates no error, the command displays ` $true ` , and ` $false ` otherwise.
103103
104104You can use this function in conditional statements, such as those that might precede an
105105` Import-Module ` command or a command that uses the module.
0 commit comments