summaryrefslogtreecommitdiff
path: root/system/mdocml/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'system/mdocml/doinst.sh')
-rw-r--r--system/mdocml/doinst.sh3
1 files changed, 0 insertions, 3 deletions
diff --git a/system/mdocml/doinst.sh b/system/mdocml/doinst.sh
index a4357e61d3..1aa4f55e10 100644
--- a/system/mdocml/doinst.sh
+++ b/system/mdocml/doinst.sh
@@ -1,14 +1,11 @@
config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
- # If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
- # toss the redundant copy
rm $NEW
fi
- # Otherwise, we leave the .new copy for the admin to consider...
}
config etc/mandoc.conf.new