Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
59b4a77d
Commit
59b4a77d
authored
Jun 26, 2018
by
Andrew Heather
Browse files
TUT: RunFunctions - added protection for user shell customisations
parent
1e5919f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/tools/RunFunctions
View file @
59b4a77d
...
...
@@ -313,17 +313,17 @@ cloneParallelCase()
# Only copy some time directories
echo
" clone processor directories with
$#
times:
$@
"
for
proc
in
$(
cd
$src
&&
\l
s
-d
processor
*
)
for
proc
in
$(
\
c
d
$src
&&
\l
s
-d
processor
*
)
do
srcProc
=
$src
/
$proc
dstProc
=
$dst
/
$proc
mkdir
$dstProc
cp
-r
$srcProc
/constant
$dstProc
/
\
c
p
-r
$srcProc
/constant
$dstProc
/
for
time
do
[
-d
$srcProc
/
$time
]
&&
cp
-r
$srcProc
/
$time
$dstProc
/
[
-d
$srcProc
/
$time
]
&&
\
c
p
-r
$srcProc
/
$time
$dstProc
/
done
done
...
...
@@ -353,7 +353,7 @@ restore0Dir()
then
(
echo
"Filter #include directives in processors/0:"
cd
processors/0 2>/dev/null
||
exit
0
\
c
d processors/0 2>/dev/null
||
exit
0
for
file
in
$(
grep
-l
"#include"
*
2> /dev/null
)
do
foamDictionary
"
$file
"
>
"
$file
.
$$
."
&&
mv
"
$file
.
$$
."
"
$file
"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment