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 --------------------"
|
echo "------------------- /dev/sd$x --------------------"
|
||||||
smartctl -H -i /dev/sd$x;
|
smartctl -H -i /dev/sd$x;
|
||||||
echo "-------------------------------------------------"
|
echo "-------------------------------------------------"
|
||||||
|
else
|
||||||
|
exit
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [[ -z $(ls /dev | grep nvme) ]];then
|
if [[ -z $(ls /dev | grep nvme) ]];then
|
||||||
|
Loading…
Reference in New Issue
Block a user