]> arthur.barton.de Git - nagcollect.git/blobdiff - client/lib/tests/RAID.tst
Remove whitespaces from RAID status text
[nagcollect.git] / 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"`
        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"
                if [ "$status" != "Online" ]; then
                        STATUS=2
                        TEXT="ERROR - RAID is $status"