RAID.tst: fix wrong variable name in status text output
authorAlexander Barton <alex@barton.de>
Wed, 10 Nov 2010 09:31:09 +0000 (10:31 +0100)
committerAlexander Barton <alex@barton.de>
Wed, 10 Nov 2010 09:31:09 +0000 (10:31 +0100)
client/lib/tests/RAID.tst

index 8b537e5..522acd4 100644 (file)
@@ -11,7 +11,7 @@ if [ `uname` = "Darwin" ]; then
                statusString1=`grep "^Status:" "$tmp" | uniq`
                status=`echo $statusString1 | sed -e 's/Status: //g'`
                statusString=`grep "^Status:" "$tmp"`
-               statusText=`echo $statusStringAll | sed -e 's/Status: //g' | sed -e 's/ /, /g'`
+               statusText=`echo $statusString | sed -e 's/Status: //g' | sed -e 's/ /, /g'`
                if [ "$status" != "Online" ]; then
                        STATUS=2
                        TEXT="ERROR - RAID is $statusText"