BehrRiley / The-Network

Partial Access Directory
GNU General Public License v3.0
0 stars 0 forks source link

[BORK] Version Check for Production Server #70

Open BehrRiley opened 4 years ago

BehrRiley commented 4 years ago

Relevant File: https://github.com/BehrRiley/The-Network/blob/master/.control/!start_1152production.bat

Relevant Code:

:PaperCheck
if exist "..\..\.jars\Version\1.15.2 Paper (2).jar" (
    echo Update found - updating.
    del "..\..\.jars\Version\1.15.2 Paper.jar"
    ren "..\..\.jars\Version\1.15.2 Paper (2).jar" "1.15.2 Paper.jar"
    )
goto %Version%Start

Description: This specifically borks when attempting to delete the version. If multiple servers are utilizing the jar, the file cannot be modified or deleted.

Recommended changes: