Daniel Gibbs 3 лет назад
Родитель
Сommit
16dcc76063
2 измененных файлов с 8 добавлено и 8 удалено
  1. 5 5
      lgsm/functions/fix_lo.sh
  2. 3 3
      lgsm/functions/update_papermc.sh

+ 5 - 5
lgsm/functions/fix_lo.sh

@@ -6,12 +6,12 @@
 
 
 functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 
-local APPID_FILE=${executabledir}/steam_appid.txt
-if [ ! -f "${APPID_FILE}" ]; then
-	fn_print_information "adding ${APPID_FILE} to ${gamename} server."
+appidfile=${executabledir}/steam_appid.txt
+if [ ! -f "${appidfile}" ]; then
+	fn_print_information "adding ${appidfile} to ${gamename} server."
 	fn_sleep_time
 	fn_sleep_time
-	echo "903950" > "${APPID_FILE}"
+	echo "903950" > "${appidfile}"
 else
 else
-	fn_print_information "${APPID_FILE} already exists. No action to be taken."
+	fn_print_information "${appidfile} already exists. No action to be taken."
 	fn_sleep_time
 	fn_sleep_time
 fi
 fi

+ 3 - 3
lgsm/functions/update_papermc.sh

@@ -5,9 +5,9 @@
 # Website: https://linuxgsm.com
 # Website: https://linuxgsm.com
 # Description: Handles updating of PaperMC and Waterfall servers.
 # Description: Handles updating of PaperMC and Waterfall servers.
 
 
-local commandname="UPDATE"
-local commandaction="Update"
-local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
+commandname="UPDATE"
+commandaction="Update"
+function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 
 fn_update_papermc_dl() {
 fn_update_papermc_dl() {
 	# get build info
 	# get build info