Fix map analyzer

This commit is contained in:
Varun Patil 2020-05-06 13:32:02 +05:30
parent 47ee508ae5
commit 2e366a713e
1 changed files with 43 additions and 41 deletions

View File

@ -29,6 +29,13 @@ while IFS= read -r line; do
if [[ $line == *":"* ]]; then
value=${line#*:}
fi
if [[ $line == *"-"* ]]; then
value=${line#*-}
fi
value=${value//\*}
value=${value//[[:blank:]]/}
value=${value//\'}
@ -46,10 +53,6 @@ while IFS= read -r line; do
continue
fi
if [[ $value == "''" ]] ; then
continue
fi
if [ -z "$value" ] ; then
continue
fi
@ -63,14 +66,13 @@ while IFS= read -r line; do
files="$(find -name "$value.*")"
files="${files//\.\/}"
if [ -z "$files" ] ; then
continue
fi
echo "$files"
ARRAYFILES+=($files)
fi
done < dump.yml
rm dump.yml