From f4a9049fe11b317bf2d4f1b8f0b23b56771e0da2 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 1 Jan 2022 04:19:57 -0600 Subject: [PATCH] Use correct pathing in view function --- Scripts/7D2D-Manage.bash | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Scripts/7D2D-Manage.bash b/Scripts/7D2D-Manage.bash index 8caa52b..6442bc4 100644 --- a/Scripts/7D2D-Manage.bash +++ b/Scripts/7D2D-Manage.bash @@ -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() {