fix test disks
This commit is contained in:
parent
14f8d29869
commit
a92ad76e0d
|
@ -21,9 +21,9 @@ done
|
||||||
for disk in "${disks[@]}"; do
|
for disk in "${disks[@]}"; do
|
||||||
echo "Running $1 test on /dev/$disk"
|
echo "Running $1 test on /dev/$disk"
|
||||||
if [ "$1" == "short" ]; then
|
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
|
elif [ "$1" == "long" ]; then
|
||||||
sudo smartctl -t long /dev/$disk > /dev/null
|
sudo smartctl -t long /dev/$disk > /dev/null || true
|
||||||
else
|
else
|
||||||
echo "Invalid argument: $1"
|
echo "Invalid argument: $1"
|
||||||
echo "Usage: $0 [short|long]"
|
echo "Usage: $0 [short|long]"
|
||||||
|
|
Loading…
Reference in New Issue