slackbuilds_ponce/desktop/bashmount/doinst.sh
B. Watson 8fbcb3325c
desktop/bashmount: New maintainer, .new config.
Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2023-09-17 00:10:36 +07:00

11 lines
233 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/bashmount.conf.new