diff options
author | Corrado Franco <conraid (at) linux (dot) it> | 2018-12-25 05:27:40 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-12-25 05:27:40 +0700 |
commit | 4002feeb7996e619913dc7e51568e51d20539d15 (patch) | |
tree | 99783316c6bc9e2b56b8202545a2b81c895276b8 /network/neomutt/doinst.sh | |
parent | 740b268df9ffb57d7365188015a703182d4796f0 (diff) |
network/neomutt: Added (Text-based Mail Client).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/neomutt/doinst.sh')
-rw-r--r-- | network/neomutt/doinst.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/network/neomutt/doinst.sh b/network/neomutt/doinst.sh new file mode 100644 index 0000000000000..32e580cced7d5 --- /dev/null +++ b/network/neomutt/doinst.sh @@ -0,0 +1,16 @@ +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/neomutt/neomuttrc.new + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications > /dev/null 2>&1 +fi + |