From a92ad76e0da37ea2415148e2913af50db19df099 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Wed, 28 Feb 2024 14:36:00 -0700 Subject: [PATCH] fix test disks --- Other/smartctl-test-disks.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Other/smartctl-test-disks.sh b/Other/smartctl-test-disks.sh index f4f4a76..edea48e 100755 --- a/Other/smartctl-test-disks.sh +++ b/Other/smartctl-test-disks.sh @@ -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]"