From 0e1dec188efb2cfd531326a16ac20f5e2804de50 Mon Sep 17 00:00:00 2001 From: RoboMWM Date: Mon, 13 Jan 2025 20:27:05 -0800 Subject: [PATCH] why does curl return exit code 1 when using -o? --- OutlookNewBlocker.bat | 2 +- Readme.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OutlookNewBlocker.bat b/OutlookNewBlocker.bat index 0655e62..b6dfe94 100644 --- a/OutlookNewBlocker.bat +++ b/OutlookNewBlocker.bat @@ -18,7 +18,7 @@ copy "%~dp0AppxManifest.xml" "%AppData%\OutlookNewBlocker" >nul if %errorLevel% neq 0 ( echo AppxManifest.xml not found, attempting to download from GitHub... curl https://raw.githubusercontent.com/RoboMWM/OutlookNewBlocker/refs/heads/master/AppxManifest.xml -o %AppData%\OutlookNewBlocker\AppxManifest.xml - if %errorLevel% neq 0 ( + if %errorLevel% neq 1 ( echo. echo Error: Failed to create AppxManifest.xml. Download AppxManifest.xml from GitHub and try again. echo. diff --git a/Readme.md b/Readme.md index e3e483e..ee9fb3d 100644 --- a/Readme.md +++ b/Readme.md @@ -4,7 +4,7 @@ This script removes and prevents the Outlook (new) app from installing, allowing ## Instructions -1. Download and save [OutlookNewBlocker.bat](https://github.com/RoboMWM/OutlookNewBlocker/releases/download/1.0.2/OutlookNewBlocker.bat) +1. Download and save [OutlookNewBlocker.bat](https://github.com/RoboMWM/OutlookNewBlocker/releases/download/1.0.3/OutlookNewBlocker.bat) 1. You will likely have to click through multiple prompts to "keep" the file. 2. Open the Downloads folder. 3. Right-click `OutlookNewBlocker.bat` and `Run as administrator`