Permalink
Browse files

Check for bogus output coming from camcontrol identify and strip it out

  • Loading branch information...
kmoore134 committed Jan 25, 2014
1 parent 0e8260f commit 23c05467c4805513bbffdec3e8fabeec59e1377b
Showing with 6 additions and 0 deletions.
  1. +6 −0 src-sh/pc-sysinstall/backend-query/disk-list.sh
@@ -91,6 +91,12 @@ do
NEWLINE=" <Unknown Device>"
fi
+ # Check for garbage that we can't sort
+ echo $NEWLINE | sort >/dev/null 2>/dev/null
+ if [ $? -ne 0 ] ; then
+ NEWLINE=" <Unknown Device>"
+ fi
+
if [ -n "${FLAGS_MD}" ] && echo "${DEV}" | grep -E '^md[0-9]+' >/dev/null 2>/dev/null
then
NEWLINE=" <Memory Disk>"

0 comments on commit 23c0546

Please sign in to comment.