diff options
| author | Jeff Lane <jeffrey.lane@canonical.com> | 2014-11-24 14:39:58 -0500 |
|---|---|---|
| committer | Jeff Lane <jeffrey.lane@canonical.com> | 2014-11-24 14:39:58 -0500 |
| commit | 27cb4006934228ca4a752f3ebb686ace7d28383c (patch) | |
| tree | 84530323146d7591b08709c9136d3c29fc2f2c9f | |
| parent | 6945c9369e03d2eba7326e74cb01db02c3443705 (diff) | |
changed how we check for warnings
| -rwxr-xr-x | bin/storage_test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/storage_test b/bin/storage_test index fbc234e..306f47c 100755 --- a/bin/storage_test +++ b/bin/storage_test @@ -37,8 +37,8 @@ then echo "$disk is a block device" #Add a check for warnings - WARN=`parted -l -s |grep "^Warning.*${disk}.*[Rr]ead-only" 2>&1` || WARN='no' - if [ "$WARN" != "no" ] + WARN=$(parted -l -s |grep "^Warning.*${disk}.*[Rr]ead-only" 2>&1) + if $? then echo "Warning found in parted output:" echo $WARN |
