1
0
mirror of https://github.com/byReqz/stocheck.git synced 2025-06-15 10:57:47 +00:00

add fallback stops to loops

This commit is contained in:
Nils
2021-01-24 02:28:09 +00:00
committed by GitHub
parent 85f595ebab
commit 0096c1ec08

View File

@ -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