paraFoam: Added check for ".orig" variants

This commit is contained in:
Will Bainbridge
2018-11-08 08:38:11 +00:00
parent 7b59f1f169
commit 5a988c068e

View File

@ -235,7 +235,8 @@ else
$blockMeshDictDir \ $blockMeshDictDir \
; ;
do do
[ -s "$parentDir/$check" ] || { [ -s "$parentDir/$check" ] || [ -s "$parentDir/$check.orig" ] ||
{
[ -n "$warn" ] && echo "$warn" 1>&2 [ -n "$warn" ] && echo "$warn" 1>&2
echo " $parentDir/$check" 1>&2 echo " $parentDir/$check" 1>&2
unset warn unset warn
@ -250,7 +251,8 @@ else
$fvControls/fvSolution \ $fvControls/fvSolution \
; ;
do do
[ -s "$parentDir/$check" ] || { [ -s "$parentDir/$check" ] || [ -s "$parentDir/$check.orig" ] ||
{
[ -n "$warn" ] && echo "$warn" 1>&2 [ -n "$warn" ] && echo "$warn" 1>&2
echo " $parentDir/$check" 1>&2 echo " $parentDir/$check" 1>&2
unset warn unset warn