Skip to content

Commit 1c59697

Browse files
Update update_mc.sh (#4563)
If the executable variable is modified, fn_update_dl does not update minecraft_server.jar and which is used in fn_update_localbuild. In addition this creates a problem if a alternative executable is used to launch minecraft by overwriting it. Co-authored-by: Daniel Gibbs <me@danielgibbs.co.uk>
1 parent dc6cbce commit 1c59697

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lgsm/modules/update_mc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
1010
fn_update_dl() {
1111
# Download and extract files to serverfiles.
1212
fn_fetch_file "${remotebuildurl}" "" "" "" "${tmpdir}" "${remotebuildfilename}" "chmodx" "norun" "noforce" "nohash"
13-
cp -f "${tmpdir}/${remotebuildfilename}" "${serverfiles}/${executable#./}"
13+
cp -f "${tmpdir}/${remotebuildfilename}" "${serverfiles}/minecraft_server.jar"
1414
fn_clear_tmp
1515
}
1616

0 commit comments

Comments
 (0)