mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-13 18:02:29 +00:00
Fix location of whitespace cleanup in deploy.ps1
This commit is contained in:
parent
6f4309aa04
commit
eb4d0eeb3b
2 changed files with 38 additions and 37 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
#
|
#
|
||||||
# Module manifest for module 'NetboxPS'
|
# Module manifest for module 'NetboxPS'
|
||||||
#
|
#
|
||||||
# Generated by: Ben Claussen
|
# Generated by: Ben Claussen
|
||||||
|
|
|
||||||
|
|
@ -152,6 +152,10 @@ switch ($PSCmdlet.ParameterSetName) {
|
||||||
Write-Host "Updating Module Manifest"
|
Write-Host "Updating Module Manifest"
|
||||||
Update-ModuleManifest @UpdateModuleManifestSplat
|
Update-ModuleManifest @UpdateModuleManifestSplat
|
||||||
|
|
||||||
|
Write-Host " Removing trailing whitespaces from psd1"
|
||||||
|
Invoke-ScriptAnalyzer -Path $UpdateModuleManifestSplat.Path -IncludeRule 'PSAvoidTrailingWhitespace' -Fix
|
||||||
|
|
||||||
|
|
||||||
if (-not (Test-Path $OutputDirectory)) {
|
if (-not (Test-Path $OutputDirectory)) {
|
||||||
try {
|
try {
|
||||||
Write-Warning "Creating output directory [$OutputDirectory]"
|
Write-Warning "Creating output directory [$OutputDirectory]"
|
||||||
|
|
@ -165,9 +169,6 @@ if (-not (Test-Path $OutputDirectory)) {
|
||||||
Write-Host " Copying psd1"
|
Write-Host " Copying psd1"
|
||||||
Copy-Item -Path "$PSScriptRoot\$ModuleName.psd1" -Destination $PSD1OutputPath -Force
|
Copy-Item -Path "$PSScriptRoot\$ModuleName.psd1" -Destination $PSD1OutputPath -Force
|
||||||
|
|
||||||
Write-Host " Removing trailing whitespaces from psd1"
|
|
||||||
Invoke-ScriptAnalyzer -Path $PSD1OutputPath -IncludeRule 'PSAvoidTrailingWhitespace' -Fix
|
|
||||||
|
|
||||||
Write-Host " Copying psm1"
|
Write-Host " Copying psm1"
|
||||||
Copy-Item -Path $ConcatenatedFilePath -Destination $PSM1OutputPath -Force
|
Copy-Item -Path $ConcatenatedFilePath -Destination $PSM1OutputPath -Force
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue