| [ Web Proxy ] |
| Viewing: https://docs.psscriptbuilder.com/cmdlets/../../../cmdlets/Test-PSScriptBuilderBumpConfiguration/ | [Back] [Original] |
Tests the bump configuration file for validity.
The Test-PSScriptBuilderBumpConfiguration cmdlet validates the bump configuration file from disk against the configured data structure. Returns $true if the file is valid, $false otherwise.
Validation errors are reported via Write-Error. This is useful when external tools have modified the bump configuration file and you want to verify its integrity before proceeding with bump file operations.
if (Test-PSScriptBuilderBumpConfiguration) {
Write-Host "Bump configuration is valid, proceeding with update..."
Update-PSScriptBuilderBumpFiles
} else {
Write-Host "Bump configuration has errors, fix them first"
}
Validates bump configuration and conditionally updates bump files.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
| Web Proxy Viewer | New URL | Original Page |