slackbuilds_ponce/system/glances/doinst.sh
David Spencer 806661b6dd system/glances: Fix install with ROOT=.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
2017-08-12 06:57:25 +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/glances.conf.new