From 77ca6af2d943a1af53ebce59219c7a57d7f19731 Mon Sep 17 00:00:00 2001 From: claustromaniac <20734810+claustromaniac@users.noreply.github.com> Date: Sun, 10 Dec 2017 01:20:39 +0000 Subject: [PATCH] I said 3.2. I'm not me if I don't miss something. --- updater.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/updater.bat b/updater.bat index 2569b9e..a90c22a 100644 --- a/updater.bat +++ b/updater.bat @@ -3,7 +3,7 @@ TITLE ghacks user.js updater REM ### ghacks-user.js updater for Windows REM ## author: @claustromaniac -REM ## version: 3.1 +REM ## version: 3.2 SET _myname=%~n0 SET _myparams=%* @@ -81,7 +81,7 @@ IF DEFINED _updateb ( REM * Copy itself overwriting the original batch REM * Start that script in a new CMD instance REM * Exit - IF EXIST !_myname:~9!.bat ( + IF EXIST "!_myname:~9!.bat" ( REN "!_myname:~9!.bat" "!_myname:~9!.bat.old" DEL /F "!_myname:~9!.bat.old" )