mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: foamConfigurePaths : incorrect logic
This commit is contained in:
@ -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@" \
|
||||
|
||||
Reference in New Issue
Block a user