mirror of
https://github.com/arkenfox/user.js.git
synced 2024-10-01 01:35:52 -04:00
cosmetic stuff
This commit is contained in:
parent
4f22afac7f
commit
018fb2a321
@ -165,7 +165,6 @@ IF EXIST user.js (
|
|||||||
IF EXIST user.js.bak (
|
IF EXIST user.js.bak (
|
||||||
FC user.js.bak user.js >nul && SET "changed=false" || SET "changed=true"
|
FC user.js.bak user.js >nul && SET "changed=false" || SET "changed=true"
|
||||||
)
|
)
|
||||||
ECHO:
|
|
||||||
IF "!changed!"=="true" (
|
IF "!changed!"=="true" (
|
||||||
IF EXIST user.js.old.bak DEL /F user.js.old.bak
|
IF EXIST user.js.old.bak DEL /F user.js.old.bak
|
||||||
CALL :message "Update complete."
|
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.bak ( REN user.js.bak user.js )
|
||||||
IF EXIST user.js.old.bak ( REN user.js.old.bak user.js.bak )
|
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 "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 _log (
|
||||||
IF NOT DEFINED _ua ( PAUSE )
|
IF NOT DEFINED _ua ( PAUSE )
|
||||||
@ -191,9 +190,9 @@ EXIT /B
|
|||||||
REM ########### Message Function ###########
|
REM ########### Message Function ###########
|
||||||
:message
|
:message
|
||||||
SETLOCAL DisableDelayedExpansion
|
SETLOCAL DisableDelayedExpansion
|
||||||
ECHO:
|
IF NOT DEFINED _log (ECHO:)
|
||||||
ECHO: %~1
|
ECHO: %~1
|
||||||
ECHO:
|
IF NOT DEFINED _log (ECHO:)
|
||||||
ENDLOCAL
|
ENDLOCAL
|
||||||
GOTO :EOF
|
GOTO :EOF
|
||||||
REM ############ Merge function ############
|
REM ############ Merge function ############
|
||||||
|
Loading…
Reference in New Issue
Block a user