8000 Package only from root plus powershell by TravisEz13 · Pull Request #4569 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Package only from root plus powershell #4569

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Address PR feedback regarding adding hashtables
  • Loading branch information
TravisEz13 committed Aug 15, 2017
commit d6c0ce7fc10a3fec9c720ffbb1ebe87073c51dbf
8 changes: 4 additions & 4 deletions build.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -726,16 +726,16 @@ function New-PSOptions {
$RootInfo = @{RepoPath = $PSScriptRoot}

# the valid root is the root of the filesystem and the folder PowerShell
$RootInfo += @{ValidPath = Join-Path -Path ([system.io.path]::GetPathRoot($RootInfo.RepoPath)) -ChildPath 'PowerShell' }
$RootInfo['ValidPath'] = Join-Path -Path ([system.io.path]::GetPathRoot($RootInfo.RepoPath)) -ChildPath 'PowerShell'

if($RepoInfo.RepoPath -ne $RootInfo.ValidPath)
{
$RootInfo += @{Warning = "Please ensure you repo is at the root of the file system and named 'PowerShell' (example: '$($RootInfo.ValidPath)'), when building and packaging for release!" }
$RootInfo += @{IsValid = $false}
$RootInfo['Warning'] = "Please ensure you repo is at the root of the file system and named 'PowerShell' (example: '$($RootInfo.ValidPath)'), when building and packaging for release!"
$RootInfo['IsValid'] = $false
}
else
{
$RootInfo += @{IsValid = $true}
$RootInfo['IsValid'] = $true
}

return @{ RootInfo = [PSCustomObject]$RootInfo
Expand Down
0