Made check blocking execution policy, only blocking (always returning true) on linux

This commit is contained in:
Travis Plunk
2016-07-11 18:54:05 -07:00
parent bb32a9648b
commit 547d5da804
2 changed files with 4 additions and 1 deletions
@@ -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))