slackbuilds_ponce/multimedia/ripit/doinst.sh
B. Watson 63fe4b60e9 multimedia/ripit: New maintainer, fix REQUIRES.
Signed-off-by: B. Watson <yalhcru@gmail.com>
2017-04-01 06:57:10 +07:00

11 lines
223 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/ripit/config.new