Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
a45f394c
Commit
a45f394c
authored
Nov 04, 2010
by
mattijs
Browse files
BUG: foamConfigurePaths : incorrect logic
parent
bbf218d6
Changes
1
Show whitespace changes
Inline
Side-by-side
bin/tools/foamConfigurePaths
View file @
a45f394c
...
...
@@ -53,7 +53,8 @@ _inlineSed()
backup
=
`
tempfile
`
cp
$1
$backup
sed
-i
-e
"
$2
"
$1
cmp
$1
$backup
||
usage
"Failed :
$3
"
cmp
--quiet
$1
$backup
&&
usage
"Failed :
$3
"
return
0
}
...
...
@@ -71,8 +72,6 @@ do
--foamInstall
)
[
"$#"
-ge
2
]
||
usage
"'
$1
' option requires an argument"
foamInstall
=
"
$2
"
echo
"** foamInstall:
$foamInstall
"
_inlineSed
\
etc/bashrc
\
'/^[^#]/s@foamInstall=.*@foamInstall='
"
$foamInstall
@"
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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