mirror of
https://github.com/byReqz/stocheck.git
synced 2024-11-22 14:41:15 +00:00
add fallback stops to loops
This commit is contained in:
parent
85f595ebab
commit
0096c1ec08
@ -18,6 +18,8 @@ while [ ! -n "$1" ]; do
|
||||
echo "------------------- /dev/sd$x --------------------"
|
||||
smartctl -H -i /dev/sd$x;
|
||||
echo "-------------------------------------------------"
|
||||
else
|
||||
exit
|
||||
fi
|
||||
done
|
||||
if [[ -z $(ls /dev | grep nvme) ]];then
|
||||
|
Loading…
Reference in New Issue
Block a user