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]"