From 8b86ccf55cdb91e428073ee17f57e2cf9dd84aa0 Mon Sep 17 00:00:00 2001 From: Chris Greenshields Date: Tue, 17 Jul 2018 19:24:24 +0100 Subject: [PATCH] foamGet: fixed when file only exists with extension, e.g. sampleDict.cfg --- bin/foamGet | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/foamGet b/bin/foamGet index 5c21af9ea..6fecbce0b 100755 --- a/bin/foamGet +++ b/bin/foamGet @@ -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 () {