Skip to content
Snippets Groups Projects
Commit a45f394c authored by mattijs's avatar mattijs
Browse files

BUG: foamConfigurePaths : incorrect logic

parent bbf218d6
No related branches found
No related tags found
No related merge requests found
......@@ -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@" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment