Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 23c05467c4805513bbffdec3e8fabeec59e1377b 1 parent 0e8260f
@kmoore134 kmoore134 authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 src-sh/pc-sysinstall/backend-query/disk-list.sh
View
6 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>"
Please sign in to comment.
Something went wrong with that request. Please try again.