summaryrefslogtreecommitdiff
path: root/desktop/enlightenment/doinst.sh
blob: 60ed6a83caa70dfeef8a1f1ada27a5260ee1fca2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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/enlightenment/sysactions.conf.new