File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ TITLE arkenfox user.js updater
33
44REM ## arkenfox user.js updater for Windows
55REM ## author: @claustromaniac
6- REM ## version: 4.17
6+ REM ## version: 4.18
77REM ## 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
1111VERIFY ON
1212CD /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."
You can’t perform that action at this time.
0 commit comments