Skip to content
Snippets Groups Projects
Commit 48696bdb authored by Mark Olesen's avatar Mark Olesen
Browse files

ENH: silently remove leading ~OpenFOAM/ in bin/foamEtcFile

- makes it easier to cut-and-paste from dictionary contents that use
  the Foam::findEtcFile expansion
parent d5efa1cc
No related merge requests found
......@@ -195,9 +195,10 @@ done
# done
# Save the essential bits of information:
# Save the essential bits of information
# silently remove leading ~OpenFOAM/ (used in Foam::findEtcFile)
nArgs=$#
fileName="$1"
fileName="${1#~OpenFOAM/}"
# Define the various places to be searched:
unset dirList
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment