You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# show notification to change execution policy:if((Get-ExecutionPolicy) -gt'RemoteSigned'-or (Get-ExecutionPolicy) -eq'ByPass') {
Write-Output"PowerShell requires an execution policy of 'RemoteSigned' to run Scoop."Write-Output"To make this change please run:"Write-Output"'Set-ExecutionPolicy RemoteSigned -scope CurrentUser'"break
}
Which means that any executionpolicy greater than RemoteSigned cannot install scoop.
But Bypass is greater than RemoteSigned that cannot install scoop ?
I think your suggestion on -neq 'ByPass' should fix the issue.
Or make an explict choose of the execution policy ( (Get-ExecutionPolicy).ToString()) instead of the int comparaison. Because it's a little bit strange to set the ByPass at 4, nobody outside of the powershell team can know why, this is too internals.
Hello,
https://github.com/lukesampson/scoop/blob/master/bin/install.ps1#L15 says:
Which means that any executionpolicy greater than RemoteSigned cannot install scoop.
But Bypass is greater than RemoteSigned that cannot install scoop ?
I managed to install scoop by downloading the file install.ps1 locally and removing the if block.
Could you please check the
if
condition.The text was updated successfully, but these errors were encountered: