From 18a890bdd6fe01872b2f2925cfa51cc750a2fa17 Mon Sep 17 00:00:00 2001 From: Martinski4GitHub <119833648+Martinski4GitHub@users.noreply.github.com> Date: Mon, 16 Feb 2026 00:12:40 -0800 Subject: [PATCH] Bug Fix Bug fix in the code that builds the list of all filtered log files. --- README.md | 2 +- uiScribe.sh | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 1dd86de..5eb678f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # uiScribe ## v1.4.12 -### Updated on 2026-Feb-14 +### Updated on 2026-Feb-15 ## About uiScribe updates the System Log page to show log files created by Scribe (syslog-ng). Requires [**Scribe**](https://github.com/cynicastic/scribe) diff --git a/uiScribe.sh b/uiScribe.sh index 1576cf2..322dba8 100644 --- a/uiScribe.sh +++ b/uiScribe.sh @@ -13,7 +13,7 @@ ## Forked from https://github.com/jackyaz/uiScribe ## ## ## ######################################################## -# Last Modified: 2026-Feb-14 +# Last Modified: 2026-Feb-15 #------------------------------------------------------- ########### Shellcheck directives ########## @@ -30,7 +30,7 @@ ### Start of script variables ### readonly SCRIPT_NAME="uiScribe" readonly SCRIPT_VERSION="v1.4.12" -readonly SCRIPT_VERSTAG="26021400" +readonly SCRIPT_VERSTAG="26021523" SCRIPT_BRANCH="develop" SCRIPT_REPO="https://raw.githubusercontent.com/AMTM-OSR/$SCRIPT_NAME/$SCRIPT_BRANCH" readonly SCRIPT_DIR="/jffs/addons/${SCRIPT_NAME}.d" @@ -424,7 +424,7 @@ Create_Dirs() } ##----------------------------------------## -## Modified by Martinski W. [2026-Feb-13] ## +## Modified by Martinski W. [2026-Feb-15] ## ##----------------------------------------## _Generate_ListOf_Filtered_LogFiles_() { @@ -438,13 +438,13 @@ _Generate_ListOf_Filtered_LogFiles_() then while read -r theLINE && [ -n "$theLINE" ] do - logFilePath="$(echo "$theLINE" | sed -e 's/.*[{ ]\?file("//;s/".*$//')" + logFilePath="$(echo "$theLINE" | sed -e "s/.*[{[:blank:]]\?file([\"']//;s/[\"'].*$//")" if grep -qE "^${logFilePath}$" "$tmpFilterList" then continue #Avoid duplicates# fi echo "$logFilePath" >> "$tmpFilterList" done <