From 55de717f8365748941d87bbcabf14437a80415ea Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Fri, 17 Nov 2023 19:00:10 +1100 Subject: [PATCH] Update syno_hdd_db.sh --- syno_hdd_db.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syno_hdd_db.sh b/syno_hdd_db.sh index d0bc36c..59f0559 100644 --- a/syno_hdd_db.sh +++ b/syno_hdd_db.sh @@ -728,7 +728,7 @@ fi fixdrivemodel(){ # Remove " 00Y" from end of Samsung/Lenovo SSDs # Github issue #13 - if [[ $1 =~ MZ.*" 00Y" ]]; then + if [[ $1 ]]; then hdmodel=$(printf "%s" "$1" | sed 's/ 00Y.*//') fi