Skip to content

Commit 7fa9df5

Browse files
Update MerlinAU.sh
1 parent 50668b6 commit 7fa9df5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MerlinAU.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4381,7 +4381,7 @@ Please manually update to version $minimum_supported_version or higher to use th
43814381
local BM_VERSION="$(grep "^Version=" /jffs/scripts/backupmon.sh | awk -F'"' '{print $2}')"
43824382

43834383
# Adjust version format from 1.46 to 1.4.6 if needed
4384-
DOT_COUNT="$(echo "$BM_VERSION" | tr -cd '.' | wc -c)"
4384+
local DOT_COUNT="$(echo "$BM_VERSION" | tr -cd '.' | wc -c)"
43854385
if [ "$DOT_COUNT" -eq 0 ]; then
43864386
# If there's no dot, it's a simple version like "1" (unlikely but let's handle it)
43874387
BM_VERSION="${BM_VERSION}.0.0"
@@ -4744,7 +4744,7 @@ Please manually update to version $minimum_supported_version or higher to use th
47444744
local DIVER_VERSION="$(grep "^VERSION=" /opt/bin/diversion | awk -F'=' '{print $2}' | tr -d ' ')"
47454745

47464746
# Adjust version format from 1.46 to 1.4.6 if needed
4747-
DDOT_COUNT="$(echo "$DIVER_VERSION" | tr -cd '.' | wc -c)"
4747+
local DDOT_COUNT="$(echo "$DIVER_VERSION" | tr -cd '.' | wc -c)"
47484748
if [ "$DDOT_COUNT" -eq 0 ]; then
47494749
# If there's no dot, it's a simple version like "1" (unlikely but let's handle it)
47504750
DIVER_VERSION="${DIVER_VERSION}.0.0"

0 commit comments

Comments
 (0)