Browse Source

Change whitespace trimming method for drive model

pull/560/head
Dave Russell 2 days ago
committed by GitHub
parent
commit
1324b62ce9
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      syno_hdd_db.sh

2
syno_hdd_db.sh

@ -1026,7 +1026,7 @@ getdriveinfo(){
# Get drive model # Get drive model
hdmodel=$(cat "$1/device/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 # Fix dodgy model numbers
fixdrivemodel "$hdmodel" fixdrivemodel "$hdmodel"

Loading…
Cancel
Save