Skip to content

Commit 5eaa819

Browse files
authored
v4.18 - fix backup filename
1 parent cc0f053 commit 5eaa819

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

updater.bat

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ TITLE arkenfox user.js updater
33

44
REM ## arkenfox user.js updater for Windows
55
REM ## author: @claustromaniac
6-
REM ## version: 4.17
6+
REM ## version: 4.18
77
REM ## instructions: https://github.com/arkenfox/user.js/wiki/5.1-Updater-[Options]#-windows
88

9-
SET v=4.17
9+
SET v=4.18
1010

1111
VERIFY ON
1212
CD /D "%~dp0"
@@ -178,8 +178,8 @@ IF EXIST user.js.new (
178178
MOVE /Y user.js user.js.bak >nul
179179
) ELSE (
180180
FOR /F "usebackq tokens=1,2 delims==" %%i IN (`wmic os get LocalDateTime /VALUE 2^>NUL`) DO IF '.%%i.'=='.LocalDateTime.' SET ldt=%%j
181-
SET ldt=%ldt:~0,8%_%ldt:~8,6%
182-
MOVE /Y user.js "user-backup-%ldt%.js" >nul
181+
SET ldt=!ldt:~0,8!_!ldt:~8,6!
182+
MOVE /Y user.js "user-backup-!ldt!.js" >nul
183183
)
184184
REN user.js.new user.js
185185
CALL :message "Update complete."

0 commit comments

Comments
 (0)