diff --git a/CHANGES.txt b/CHANGES.txt index 7863959..5394a52 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,6 @@ +v1.2.28 +- Fixed bug in getting the M.2 card model. + v1.2.27 - Changed 'latest version check' to download and extract to /tmp then copy only the syno_hdd_db.sh and readme.txt files to the currrently running script's location. - Minor tweaks to the shell output. diff --git a/syno_hdd_db.sh b/syno_hdd_db.sh index 8282112..88cc470 100644 --- a/syno_hdd_db.sh +++ b/syno_hdd_db.sh @@ -413,7 +413,7 @@ for d in /sys/block/*; do if [[ $m2 != "no" ]]; then getm2info "$d" "nvme" # Get M.2 card model if in M.2 card - getcardmodel "/dev/$d" + getcardmodel "/dev/$(basename -- "${d}")" fi fi ;; @@ -423,7 +423,7 @@ for d in /sys/block/*; do if [[ $m2 != "no" ]]; then getm2info "$d" "nvc" # Get M.2 card model if in M.2 card - getcardmodel "/dev/$d" + getcardmodel "/dev/$(basename -- "${d}")" fi fi ;;