Fix map analyzer
This commit is contained in:
parent
47ee508ae5
commit
2e366a713e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue