1
0
mirror of https://github.com/byReqz/stocheck.git synced 2024-11-22 22:51:15 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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