Use correct pathing in view function

This commit is contained in:
Price Hiller 2022-01-01 04:19:57 -06:00
parent 788d8cbb71
commit f4a9049fe1

View File

@ -643,12 +643,13 @@ view() {
[[ -z "${server_id}" ]] && log "error" "No server id passed" && exit 1
local server_directory
local server_log_dir
local server_name
server_name="Server-${server_id}"
server_directory="${BASE_DIR}/${server_name}"
server_log_dir= "${server_directory}/7DaysToDieServer_Data"
cd "${server_directory}"
tail -f "$(ls -t output_log* | head -1)"
tail -f "${server_log_dir}/$(ls -t "${server_log_dir}"/output_log* | head -1)"
}
list_servers() {