fix test disks

This commit is contained in:
Cyberes 2024-02-28 14:36:00 -07:00
parent 14f8d29869
commit a92ad76e0d
1 changed files with 2 additions and 2 deletions

View File

@ -21,9 +21,9 @@ done
for disk in "${disks[@]}"; do
echo "Running $1 test on /dev/$disk"
if [ "$1" == "short" ]; then
sudo smartctl -t short /dev/$disk > /dev/null
sudo smartctl -t short /dev/$disk > /dev/null || true
elif [ "$1" == "long" ]; then
sudo smartctl -t long /dev/$disk > /dev/null
sudo smartctl -t long /dev/$disk > /dev/null || true
else
echo "Invalid argument: $1"
echo "Usage: $0 [short|long]"