Skip to content

Commit 76a6617

Browse files
authored
Don't exit on unknown device types (#260)
I get `disk type is not sat, scsi, nvme or megaraid but sntrealtek`, which aborts the whole run for no reason. Looks like a 13 year old bug :) Signed-off-by: Matt Joiner <anacrolix@gmail.com>
1 parent b323e37 commit 76a6617

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

smartmon.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ for device in ${device_list}; do
200200
usbprolific) smartctl -A -d "${type}" "${disk}" | parse_smartctl_attributes "${disk}" "${type}" ;;
201201
*)
202202
(>&2 echo "disk type is not sat, scsi, nvme or megaraid but ${type}")
203-
exit
203+
continue
204204
;;
205205
esac
206206
done | format_output

0 commit comments

Comments
 (0)