From 7cad01038bf44eb2a07ebdd61a0dd1b644839175 Mon Sep 17 00:00:00 2001 From: Joeym0180 <55741366+Joeym0180@users.noreply.github.com> Date: Mon, 14 Jun 2021 11:55:11 +0200 Subject: [PATCH] Update Run-FromGithub.ps1 This way it is a oneliner --- Run-FromGithub.ps1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Run-FromGithub.ps1 b/Run-FromGithub.ps1 index df35d85..5b56edc 100644 --- a/Run-FromGithub.ps1 +++ b/Run-FromGithub.ps1 @@ -1,4 +1,3 @@ - -$ScriptFromGithHub = Invoke-WebRequest https://raw.githubusercontent.com/tomarbuthnot/Run-PowerShell-Directly-From-GitHub/master/Run-FromGitHub-SamplePowerShell.ps1 -Invoke-Expression $($ScriptFromGithHub.Content) +# oneliner +Invoke-Expression $(Invoke-WebRequest "https://raw.githubusercontent.com/tomarbuthnot/Run-PowerShell-Directly-From-GitHub/master/Run-FromGitHub-SamplePowerShell.ps1").Content