From ce5770094b4398e8e56c163910a37ddf4862d8da Mon Sep 17 00:00:00 2001 From: Ken Maranion Date: Fri, 22 Sep 2023 13:03:44 -0700 Subject: [PATCH] fixed set -e --- .../Mac Commands/Mac - Install Sentinel One Agent.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/PowerShell/JumpCloud Commands Gallery/Mac Commands/Mac - Install Sentinel One Agent.md b/PowerShell/JumpCloud Commands Gallery/Mac Commands/Mac - Install Sentinel One Agent.md index a61212777..3101e4820 100644 --- a/PowerShell/JumpCloud Commands Gallery/Mac Commands/Mac - Install Sentinel One Agent.md +++ b/PowerShell/JumpCloud Commands Gallery/Mac Commands/Mac - Install Sentinel One Agent.md @@ -37,14 +37,7 @@ mkdir /tmp/$TempFolder cd /tmp/$TempFolder # Download Sentinel One file -if curl -o "$filename" "$DownloadURL"; then - echo "Download successful" -else - # Catch block - echo "Error: Failed to download file" - exit 1 -fi - +curl --fail -o "$filename" "$DownloadURL" DownloadFile="$(ls)" echo "Downloaded $DownloadFile to /tmp/$TempFolder"