mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
foamGet: fixed when file only exists with extension,
e.g. sampleDict.cfg
This commit is contained in:
@ -68,8 +68,8 @@ findFilesInDirs () {
|
|||||||
[ -d "$_d" ] && _out="$(find "$_d" -name "$_str" -type f | sort) $_out"
|
[ -d "$_d" ] && _out="$(find "$_d" -name "$_str" -type f | sort) $_out"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Remove whitespace
|
# Remove whitespace and blank lines
|
||||||
echo "$_out" | xargs -n 1
|
echo "$_out" | xargs -n 1 | awk 'NF'
|
||||||
}
|
}
|
||||||
|
|
||||||
findFiles () {
|
findFiles () {
|
||||||
|
|||||||
Reference in New Issue
Block a user