summaryrefslogtreecommitdiffstats
path: root/source/n/s-nail/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/n/s-nail/doinst.sh (renamed from source/n/mailx/doinst.sh)7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/n/mailx/doinst.sh b/source/n/s-nail/doinst.sh
index 62c288b48..b541fb201 100644
--- a/source/n/mailx/doinst.sh
+++ b/source/n/s-nail/doinst.sh
@@ -1,14 +1,13 @@
-#!/bin/sh
config() {
NEW="$1"
- OLD="`dirname $NEW`/`basename $NEW .new`"
+ 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
+ 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/nail.rc.new
-# Make symlinks: