Skip to content
Snippets Groups Projects
Commit 34d7191e authored by Blaise Li's avatar Blaise Li
Browse files

More robust size factor parsing.

There was a bug occurring when a library name was contained in another.
parent 8e474ad5
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,7 @@ then
if [ -f ${norm} ]
then
echo "reading scaling factor for ${lib_name} in ${norm}"
size=$(grep "${lib_name}" ${norm} | cut -f2)
size=$(grep -w "^${lib_name}" ${norm} | cut -f2)
if [ ! ${size} ]
then
error_exit "size could not be found on column 2, line ${lib_name} of ${norm}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment