1
0

cosmetic stuff

This commit is contained in:
claustromaniac 2017-12-25 03:33:36 +00:00 committed by GitHub
parent 4f22afac7f
commit 018fb2a321
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -165,7 +165,6 @@ IF EXIST user.js (
IF EXIST user.js.bak (
FC user.js.bak user.js >nul && SET "changed=false" || SET "changed=true"
)
ECHO:
IF "!changed!"=="true" (
IF EXIST user.js.old.bak DEL /F user.js.old.bak
CALL :message "Update complete."
@ -181,7 +180,7 @@ IF EXIST user.js (
IF EXIST user.js.bak ( REN user.js.bak user.js )
IF EXIST user.js.old.bak ( REN user.js.old.bak user.js.bak )
CALL :message "Update failed. Make sure PowerShell is allowed internet access."
CALL :message "No changes were made."
ECHO: No changes were made.
)
IF NOT DEFINED _log (
IF NOT DEFINED _ua ( PAUSE )
@ -191,9 +190,9 @@ EXIT /B
REM ########### Message Function ###########
:message
SETLOCAL DisableDelayedExpansion
ECHO:
IF NOT DEFINED _log (ECHO:)
ECHO: %~1
ECHO:
IF NOT DEFINED _log (ECHO:)
ENDLOCAL
GOTO :EOF
REM ############ Merge function ############