Skip to content

Commit 2112a75

Browse files
authored
Merge pull request #14 from tinuwalther/develop
Implementing Parameter WhatIf in functions
2 parents 65e3385 + 768ab70 commit 2112a75

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

CI/Build-Module.ps1

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ else{
4949
$ModulePrefix = Read-Host 'Enter the Prefix for all functions of this module'
5050
$LastChange = Read-Host 'Describe what did you change'
5151
}
52-
$ModuleName = $ModuleName.ToLower() -replace '\-', '.' # Lower-case is better for linux
52+
53+
$ModuleName = $ModuleName -replace '\-', '.' # Lower-case is better for linux
54+
$ModuleFolderRootPath = Join-Path -Path $Root -ChildPath $ModuleName
55+
$ModuleFolderPath = Join-Path -Path $ModuleFolderRootPath -ChildPath $ModuleVersion
56+
5357
[PSCustomObject] @{
5458
ModuleName = $ModuleName
5559
ModuleVersion = $ModuleVersion
@@ -90,7 +94,7 @@ Write-Host "[BUILD] [TEST] Running Function-Tests" -ForegroundColor Green
9094
$TestsResult = Invoke-Pester -Script $TestsScript -Output Normal -PassThru
9195
if($TestsResult.FailedCount -eq 0){
9296

93-
$ModuleFolderPath = Join-Path -Path $Root -ChildPath $ModuleName
97+
#$ModuleFolderPath = Join-Path -Path $Root -ChildPath $ModuleName
9498

9599
if(-not(Test-Path -Path $ModuleFolderPath)){
96100
$null = New-Item -Path $ModuleFolderPath -ItemType Directory -Force

0 commit comments

Comments
 (0)