Skip to content

Commit

Permalink
Sync tools folder from main branch to generation branch
Browse files Browse the repository at this point in the history
  • Loading branch information
azurepowershell committed Feb 7, 2024
1 parent 52de9ac commit 9776cc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tools/CheckSignature.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function Check-All {
Write-Host "Found $($invalidAuthenticodeList.Count) files with an invalid authenticode signature." -ForegroundColor Red
}
else {
Write-Host "All files (.dll, .ps1, .psd1) have a valid authenticode signature." -ForegroundColor Green
Write-Host "All files (.dll, .ps1, .psm1) have a valid authenticode signature." -ForegroundColor Green
}

if ($invalidList.Length -gt 0) {
Expand Down Expand Up @@ -213,4 +213,4 @@ else
Write-Host "No switch parameter set - checking all files in current directory" -ForegroundColor Yellow
}

Check-All $path
Check-All $path
2 changes: 1 addition & 1 deletion tools/ExpandModules.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ try {
}
foreach ($package in $AllPackages) {
foreach ($module in $ModifiedModules) {
if ($package.Name -like "*$module*") {
if (($package.Name -like "*$module*") -or ($package.Name -match '^Az(Preview)?\.\d+\.\d+\.\d+\.nupkg$')) {
$module_name = $package.Name
$zip_artifact = $package.FullName -replace ".nupkg$",".zip"
Write-Output "Renaming $package to zip archive $zip_artifact"
Expand Down

0 comments on commit 9776cc7

Please sign in to comment.