aboutsummaryrefslogtreecommitdiff
path: root/desktop/ede
diff options
context:
space:
mode:
authorDavid Spencer <idlemoor@slackbuilds.org>2016-03-28 15:48:53 +0100
committerDavid Spencer <idlemoor@slackbuilds.org>2016-03-31 12:48:02 +0100
commit9aabd52ef306ab9ff672fc28f8d9864d3090f4be (patch)
treebae405b11090bec8e256b574ab8a26c48fa0a56d /desktop/ede
parent456b52654621bca7c427aec49422ee974a530bff (diff)
desktop/ede: Fixed doinst.sh.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'desktop/ede')
-rw-r--r--desktop/ede/doinst.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/desktop/ede/doinst.sh b/desktop/ede/doinst.sh
index eff4bc5182267..16be69189bbb4 100644
--- a/desktop/ede/doinst.sh
+++ b/desktop/ede/doinst.sh
@@ -1,3 +1,16 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications 2>/dev/null
fi