Skip to content

Commit

Permalink
and
Browse files Browse the repository at this point in the history
  • Loading branch information
tunisiano187 committed Apr 17, 2024
1 parent e8891b3 commit f5589d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/Block-package.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function Block-Package {
[string]$actor
)
Write-Output $actor
if($actor -ne 'tunisiano187' -or ($title.ToLower() -notmatch 'exclude' -or $title.ToLower() -notmatch 'block')) {
if($actor -ne 'tunisiano187' -or ($title.ToLower() -notmatch 'exclude' -and $title.ToLower() -notmatch 'block')) {
throw "User $actor cannot run this"
}
$ErrorActionPreference = 'Stop';
Expand Down

0 comments on commit f5589d4

Please sign in to comment.