Преглед изворни кода

corrected folder name and redundant quotes

UltimateByte пре 10 година
родитељ
комит
77d401ef1b
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      lgsm/functions/update_mumble.sh

+ 3 - 3
lgsm/functions/update_mumble.sh

@@ -40,7 +40,7 @@ fn_update_mumble_currentbuild(){
 fn_print_info "Checking current server build"
 sleep 1
 # Checks if current build info is available. If it fails, then a server restart will be forced to generate logs.
-if [ ! -f ""${consolelogdir}"/"${servicename}"-console.log" ]; then
+if [ ! -f "${consolelogdir}"/"${servicename}"-console.log ]; then
 	fn_print_info_nl "No current log found, can't retrieve current server build"
 	fn_script_log_info "No current log found, can't retrieve current server build"
 	sleep 1
@@ -53,7 +53,7 @@ if [ ! -f ""${consolelogdir}"/"${servicename}"-console.log" ]; then
 	command_start.sh
 	sleep 1
 	# Check again and exit on failure.
-	if [ ! -f ""${consolelogdir}"/"${servicename}"-console.log" ]; then
+	if [ ! -f ${consolelogdir}"/"${servicename}"-console.log ]; then
 		fn_print_fail_nl "Still no logs found, cannot retrieve server version"
 		fn_script_log_fatal "Still no logs found, cannot retrieve server version"
 		core_exit.sh
@@ -151,7 +151,7 @@ fn_fetch_file "https://github.com/mumble-voip/mumble/releases/download/${mumbleb
 fn_dl_extract "${lgsmdir}/tmp" "${mumblebuildname}" "${lgsmdir}/tmp"
 echo -e "copying to ${filesdir}...\c"
 fn_script_log "Copying to ${filesdir}"
-cp -R "${lgsmdir}/tmp/murmur-static_${mumblearch}-${availablebuild}/"* "${filesdir}"
+cp -R "${lgsmdir}/tmp/${mumblebuildname}/"* "${filesdir}"
 rm -R ${lgsmdir}/tmp
 local exitcode=$?
 if [ ${exitcode} -eq 0 ]; then