1
0
mirror of https://github.com/byReqz/stocheck.git synced 2024-12-26 19:01: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
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 --------------------"
smartctl -H -i /dev/sd$x;
echo "-------------------------------------------------"
else
exit
fi
done
if [[ -z $(ls /dev | grep nvme) ]];then