slackbuilds_ponce/development/tig/doinst.sh
Willy Sudiarto Raharjo b1447d0f44 development/tig: Updated for version 2.0.1; New maintainer.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
2014-05-05 08:22:44 +07:00

11 lines
216 B
Bash

config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
rm $NEW
fi
}
config etc/tigrc.new