Skip to content
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.

Commit

Permalink
fix for dashboard.ps1 no copy when in PSModulePath
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtisanByteCrafter committed Dec 13, 2019
1 parent 72c2f49 commit a582b74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Binary file modified UDTemplate/UDTemplate.psd1
Binary file not shown.
13 changes: 3 additions & 10 deletions UDTemplate/public/New-UDProject.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Function New-UDProject {

)
Begin {
$TemplateRoot = Split-Path (Split-Path $PSScriptRoot -Parent) -Parent
$TemplateRoot = (Split-Path $PSScriptRoot -Parent)
$ProjectRoot = (Join-Path $Destination $ProjectName)

}
Expand Down Expand Up @@ -77,15 +77,8 @@ Function New-UDProject {

# Setup config files within the new project root

$FilesToCopy = @(
'dashboard.ps1'
)

Foreach ($File in $FilesToCopy) {
Get-Content (Join-Path (Join-Path $TemplateRoot UDTemplate ) $File) |
Set-Content (Join-Path $ProjectRoot $File)
}

Get-Content (Join-Path $TemplateRoot "dashboard.ps1") |
Set-Content (Join-Path $ProjectRoot "dashboard.ps1")

$Configuration = @{
'Dashboard' = @{
Expand Down

0 comments on commit a582b74

Please sign in to comment.