foamGet: fixed when file only exists with extension,

e.g. sampleDict.cfg
This commit is contained in:
Chris Greenshields
2018-07-17 19:24:24 +01:00
parent 66a81087c2
commit 8b86ccf55c

View File

@ -68,8 +68,8 @@ findFilesInDirs () {
[ -d "$_d" ] && _out="$(find "$_d" -name "$_str" -type f | sort) $_out"
done
# Remove whitespace
echo "$_out" | xargs -n 1
# Remove whitespace and blank lines
echo "$_out" | xargs -n 1 | awk 'NF'
}
findFiles () {