slackbuilds_ponce/audio/mpd/doinst.sh
B. Watson 9b3bef6888
audio/mpd: Updated for version 0.21.22.
Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2020-04-19 10:52:24 +07:00

11 lines
219 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/mpd.conf.new