From 1324b62ce9245986309dafb7c76193cd99b86813 Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Thu, 12 Feb 2026 11:12:46 +1100 Subject: [PATCH] Change whitespace trimming method for drive model --- 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 364d98f..fed0553 100644 --- a/syno_hdd_db.sh +++ b/syno_hdd_db.sh @@ -1026,7 +1026,7 @@ getdriveinfo(){ # Get drive model hdmodel=$(cat "$1/device/model") - hdmodel=$(printf "%s" "$hdmodel" | xargs) # trim leading and trailing white space + hdmodel=$(echo "$hdmodel" | sed 's/^[[:space:]]//;s/[[:space:]]$//') # trim leading and trailing white space # Fix dodgy model numbers fixdrivemodel "$hdmodel"