Commit a45f394c authored by mattijs's avatar mattijs
Browse files

BUG: foamConfigurePaths : incorrect logic

parent bbf218d6
......@@ -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@" \
......
Markdown is supported
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