Skip to content

Commit

Permalink
Update run-repo-script.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
ben51degrees authored Jul 11, 2023
1 parent 74fbcf0 commit e641e6e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions steps/run-repo-script.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ param (
$RepoPath = [IO.Path]::Combine($pwd, $RepoName)

$Script = [IO.Path]::Combine($RepoPath, "ci", $ScriptName)
Write-Output "Building parameters for $Script"
Get-Content $Script
Get-Command -Name $Script

# Get the named parameters from the script file.
$ScriptParameters = (Get-Command -Name $Script).Parameters
Expand All @@ -23,8 +20,6 @@ $Parameters = @{}

# Add all the parameters that are available in the options.
foreach ($Option in $Options.GetEnumerator()) {
Write-Output "Checking: $($Option.Key)"
Write-Output "Value: $($Option.Value)"
if ($ScriptParameters.ContainsKey($Option.Key) -and $Null -ne $Option.Value) {
Write-Output "Adding parameter '$($Option.Key)'"
$Parameters.Add($Option.Key, $Option.Value)
Expand Down

0 comments on commit e641e6e

Please sign in to comment.