mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Made check blocking execution policy, only blocking (always returning true) on linux
This commit is contained in:
@@ -90,10 +90,12 @@ namespace System.Management.Automation
|
||||
// TODO:PSL this is a workaround since the exception below
|
||||
// hides the internal issue of what's going on in terms of
|
||||
// execution policy.
|
||||
#if LINUX
|
||||
if (Platform.IsCore)
|
||||
{
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#if DEBUG
|
||||
|
||||
@@ -433,11 +433,12 @@ namespace System.Management.Automation
|
||||
|
||||
// There is no signature support on non-Windows platforms (yet), when
|
||||
// execution reaches here, we are sure the file is under product folder
|
||||
#if LINUX
|
||||
if (Platform.IsCore)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
#endif
|
||||
// Check the file signature
|
||||
Signature fileSignature = SignatureHelper.GetSignature(file, null);
|
||||
if ((fileSignature != null) && (fileSignature.IsOSBinary))
|
||||
|
||||
Reference in New Issue
Block a user