mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: silently remove leading ~OpenFOAM/ in bin/foamEtcFile
- makes it easier to cut-and-paste from dictionary contents that use the Foam::findEtcFile expansion
This commit is contained in:
@ -195,9 +195,10 @@ done
|
|||||||
# done
|
# done
|
||||||
|
|
||||||
|
|
||||||
# Save the essential bits of information:
|
# Save the essential bits of information
|
||||||
|
# silently remove leading ~OpenFOAM/ (used in Foam::findEtcFile)
|
||||||
nArgs=$#
|
nArgs=$#
|
||||||
fileName="$1"
|
fileName="${1#~OpenFOAM/}"
|
||||||
|
|
||||||
# Define the various places to be searched:
|
# Define the various places to be searched:
|
||||||
unset dirList
|
unset dirList
|
||||||
|
|||||||
Reference in New Issue
Block a user