From 8df33be740f2af330f30a29ed36a583b5a007bf2 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 10 Jun 2023 22:26:10 +0100 Subject: [PATCH] refactor: shorten module update function names The commit renames the update functions for several game modules to shorter names. The new names are more concise and easier to remember, which should improve code readability and maintainability. --- lgsm/modules/core_modules.sh | 12 ++++++------ lgsm/modules/{update_factorio.sh => update_fctr.sh} | 0 .../modules/{update_jediknight2.sh => update_jk2.sh} | 0 lgsm/modules/{update_minecraft.sh => update_mc.sh} | 0 .../{update_minecraft_bedrock.sh => update_mcb.sh} | 0 lgsm/modules/{update_papermc.sh => update_pmc.sh} | 0 .../{update_vintagestory.sh => update_vints.sh} | 0 7 files changed, 6 insertions(+), 6 deletions(-) rename lgsm/modules/{update_factorio.sh => update_fctr.sh} (100%) rename lgsm/modules/{update_jediknight2.sh => update_jk2.sh} (100%) rename lgsm/modules/{update_minecraft.sh => update_mc.sh} (100%) rename lgsm/modules/{update_minecraft_bedrock.sh => update_mcb.sh} (100%) rename lgsm/modules/{update_papermc.sh => update_pmc.sh} (100%) rename lgsm/modules/{update_vintagestory.sh => update_vints.sh} (100%) diff --git a/lgsm/modules/core_modules.sh b/lgsm/modules/core_modules.sh index 35a919422..afaa973b3 100644 --- a/lgsm/modules/core_modules.sh +++ b/lgsm/modules/core_modules.sh @@ -645,17 +645,17 @@ update_ts3.sh() { fn_fetch_module } -update_minecraft.sh() { +update_mc.sh() { modulefile="${FUNCNAME[0]}" fn_fetch_module } -update_minecraft_bedrock.sh() { +update_mcb.sh() { modulefile="${FUNCNAME[0]}" fn_fetch_module } -update_papermc.sh() { +update_pmc.sh() { modulefile="${FUNCNAME[0]}" fn_fetch_module } @@ -665,12 +665,12 @@ update_mta.sh() { fn_fetch_module } -update_factorio.sh() { +update_fctr.sh() { modulefile="${FUNCNAME[0]}" fn_fetch_module } -update_jediknight2.sh() { +update_jk2.sh() { modulefile="${FUNCNAME[0]}" fn_fetch_module } @@ -680,7 +680,7 @@ update_steamcmd.sh() { fn_fetch_module } -update_vintagestory.sh() { +update_vints.sh() { modulefile="${FUNCNAME[0]}" fn_fetch_module } diff --git a/lgsm/modules/update_factorio.sh b/lgsm/modules/update_fctr.sh similarity index 100% rename from lgsm/modules/update_factorio.sh rename to lgsm/modules/update_fctr.sh diff --git a/lgsm/modules/update_jediknight2.sh b/lgsm/modules/update_jk2.sh similarity index 100% rename from lgsm/modules/update_jediknight2.sh rename to lgsm/modules/update_jk2.sh diff --git a/lgsm/modules/update_minecraft.sh b/lgsm/modules/update_mc.sh similarity index 100% rename from lgsm/modules/update_minecraft.sh rename to lgsm/modules/update_mc.sh diff --git a/lgsm/modules/update_minecraft_bedrock.sh b/lgsm/modules/update_mcb.sh similarity index 100% rename from lgsm/modules/update_minecraft_bedrock.sh rename to lgsm/modules/update_mcb.sh diff --git a/lgsm/modules/update_papermc.sh b/lgsm/modules/update_pmc.sh similarity index 100% rename from lgsm/modules/update_papermc.sh rename to lgsm/modules/update_pmc.sh diff --git a/lgsm/modules/update_vintagestory.sh b/lgsm/modules/update_vints.sh similarity index 100% rename from lgsm/modules/update_vintagestory.sh rename to lgsm/modules/update_vints.sh