Skip to content

Commit efbe5d4

Browse files
Merge pull request #30 from Martinski4GitHub/develop
Code Improvements
2 parents 6736245 + 359d7cd commit efbe5d4

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# uiDivStats - WebUI for Diversion statistics
22

3-
## v4.0.12
4-
### Updated on 2025-Nov-07
3+
## v4.0.13
4+
### Updated on 2025-Nov-20
55

66
## About
77
A graphical representation of domain blocking performed by Diversion.

uiDivStats.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
## Forked from https://github.com/jackyaz/uiDivStats ##
1414
## ##
1515
###################################################################
16-
# Last Modified: 2025-Nov-04
16+
# Last Modified: 2025-Nov-16
1717
#------------------------------------------------------------------
1818

1919
################# Shellcheck directives ###############
@@ -35,8 +35,8 @@
3535

3636
### Start of script variables ###
3737
readonly SCRIPT_NAME="uiDivStats"
38-
readonly SCRIPT_VERSION="v4.0.12"
39-
readonly SCRIPT_VERSTAG="25110422"
38+
readonly SCRIPT_VERSION="v4.0.13"
39+
readonly SCRIPT_VERSTAG="25111620"
4040
SCRIPT_BRANCH="develop"
4141
SCRIPT_REPO="https://raw.githubusercontent.com/AMTM-OSR/$SCRIPT_NAME/$SCRIPT_BRANCH"
4242
readonly SCRIPT_DIR="/jffs/addons/$SCRIPT_NAME.d"
@@ -443,7 +443,7 @@ Update_File()
443443
}
444444

445445
##----------------------------------------##
446-
## Modified by Martinski W. [2025-Jan-18] ##
446+
## Modified by Martinski W. [2025-Nov-15] ##
447447
##----------------------------------------##
448448
Conf_FromSettings()
449449
{
@@ -479,10 +479,10 @@ Conf_FromSettings()
479479
rm -f "$TMPFILE"
480480
rm -f "${SETTINGSFILE}.bak"
481481

482-
if diff "$SCRIPT_CONF" "${SCRIPT_CONF}.bak" | grep -q "QUERYMODE="
482+
if diff -U0 "$SCRIPT_CONF" "${SCRIPT_CONF}.bak" | grep -q "QUERYMODE="
483483
then QueryMode "$(QueryMode check)"
484484
fi
485-
if diff "$SCRIPT_CONF" "${SCRIPT_CONF}.bak" | grep -q "CACHEMODE="
485+
if diff -U0 "$SCRIPT_CONF" "${SCRIPT_CONF}.bak" | grep -q "CACHEMODE="
486486
then CacheMode "$(CacheMode check)"
487487
fi
488488
Print_Output true "Merge of updated settings from WebUI completed successfully" "$PASS"

0 commit comments

Comments
 (0)