]> arthur.barton.de Git - nagcollect.git/commitdiff
Remove whitespaces from RAID status text
authorAlexander Barton <alex@barton.de>
Mon, 14 Dec 2009 13:33:32 +0000 (14:33 +0100)
committerAlexander Barton <alex@barton.de>
Mon, 14 Dec 2009 13:33:32 +0000 (14:33 +0100)
client/lib/tests/RAID.tst

index 9c6b59d4759fce045589ddf20550b26b9982efcd..7a8c586a7d0aeb745be90cdf14962f64d2362bef 100644 (file)
@@ -9,7 +9,7 @@ if [ `uname` = "Darwin" ]; then
        if [ $? -eq 0 ]; then
                # Apple Software-RAID detected
                statusText=`grep "^Status:" "$tmp"`
-               status=`echo "$statusText" | cut -d' ' -f2-`
+               status=`echo $statusText | cut -d' ' -f2-`
                if [ "$status" != "Online" ]; then
                        STATUS=2
                        TEXT="ERROR - RAID is $status"