From 55d2f010176f7c52b2d075f8ae68b0a13fc5fd20 Mon Sep 17 00:00:00 2001 From: Danny Thomas Date: Sun, 30 Oct 2016 11:33:08 -0700 Subject: [PATCH] Don't schedule the task with delete if the initial sync failed --- scripts/ec2gaming.bat.template | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/ec2gaming.bat.template b/scripts/ec2gaming.bat.template index 9b9593c..39ba28c 100644 --- a/scripts/ec2gaming.bat.template +++ b/scripts/ec2gaming.bat.template @@ -4,4 +4,5 @@ md Z:\SteamLibrary\steamapps cmd /c mklink /j "C:\Program Files (x86)\Steam\steamapps" Z:\SteamLibrary\steamapps md Z:\Documents aws s3 sync Z:\Documents s3://BUCKET/Documents +if %errorlevel% neq 0 exit /b %errorlevel% schtasks /Create /RU USERNAME /RP PASSWORD /F /SC MINUTE /MO 1 /TN "Sync Documents with S3" /TR "aws s3 sync Z:\Documents s3://ec2gaming-639801188054/Documents --delete"