Skip to content

Commit

Permalink
fix(typo)
Browse files Browse the repository at this point in the history
  • Loading branch information
sassdawe committed Apr 13, 2024
1 parent 79d67cd commit e0976f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1402,7 +1402,7 @@ function main() {
if ($allCount -eq 1) {
# Get All sites, and filter out the sites that are already updated.
$allSites = Get-PnPTenantSite | Select-Object -ExpandProperty url;
$sitesToUpdate = $allSites | Where-Object { (try{-not $sharingOrderofPrecedence[0].contains($_)}catch{$false}) -and ({try{-not $sharingOrderofPrecedence[1].contains($_)}catch{$false}) -and (try{-not $sharingOrderofPrecedence[2].contains($_)}catch{$false}) };
$sitesToUpdate = $allSites | Where-Object { (try{-not $sharingOrderofPrecedence[0].contains($_)}catch{$false}) -and (try{-not $sharingOrderofPrecedence[1].contains($_)}catch{$false}) -and (try{-not $sharingOrderofPrecedence[2].contains($_)}catch{$false}) };
Write-output "Remaining sites to update: $($sitesToUpdate.count)";
foreach ($site in $sitesToUpdate) {
Write-Output "🚀 Start to update the sharing capability for the site: $site";
Expand Down

0 comments on commit e0976f9

Please sign in to comment.