From 79a95ba1739d77517a1fdbdf6b7e0c96eb911356 Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Tue, 30 Jan 2024 17:32:12 +1100 Subject: [PATCH 1/2] Update CHANGES.txt - Bug fix when script updates itself and user ran the script from ./scriptname.sh --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGES.txt b/CHANGES.txt index c189029..1b1fca2 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,6 @@ +v3.4.84 +- Bug fix when script updates itself and user ran the script from ./scriptname.sh + v3.4.83 - Fix for drives that exist in the drive database already but have "compatibility not_support". - Affected drives were showing as "Incompatible" in storage manager. From 00f6223f26aa368013ff51d29e7a8e4797477cef Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Tue, 30 Jan 2024 17:42:08 +1100 Subject: [PATCH 2/2] Update syno_hdd_db.sh - Bug fix when script updates itself and user ran the script from ./scriptname.sh --- syno_hdd_db.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syno_hdd_db.sh b/syno_hdd_db.sh index a65d735..7da4f2c 100644 --- a/syno_hdd_db.sh +++ b/syno_hdd_db.sh @@ -27,7 +27,7 @@ # Now warns if script is located on an M.2 volume. -scriptver="v3.4.83" +scriptver="v3.4.84" script=Synology_HDD_db repo="007revad/Synology_HDD_db" scriptname=syno_hdd_db @@ -456,7 +456,7 @@ if ! printf "%s\n%s\n" "$tag" "$scriptver" | # Reload script printf -- '-%.0s' {1..79}; echo # print 79 - - exec "$0" "${args[@]}" + exec "${scriptpath}/$scriptfile" "${args[@]}" else syslog_set warn "$script update to $tag had errors" fi