doinst.sh 222 B

123456789101112
  1. config() {
  2. NEW="$1"
  3. OLD="$(dirname $NEW)/$(basename $NEW .new)"
  4. if [ ! -r $OLD ]; then
  5. mv $NEW $OLD
  6. elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
  7. rm $NEW
  8. fi
  9. }
  10. config etc/ltrace.conf.new