Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Check for bogus output coming from camcontrol identify and strip it out
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris Moore committed Jan 25, 2014
1 parent 0e8260f commit 23c0546
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src-sh/pc-sysinstall/backend-query/disk-list.sh
Expand Up @@ -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>"
Expand Down

0 comments on commit 23c0546

Please sign in to comment.