diff options
Diffstat (limited to 'network/dillo/doinst.sh')
-rw-r--r-- | network/dillo/doinst.sh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/network/dillo/doinst.sh b/network/dillo/doinst.sh index fdf3c6249e1aa..0d18ec2dede92 100644 --- a/network/dillo/doinst.sh +++ b/network/dillo/doinst.sh @@ -1,15 +1,21 @@ config() { NEW="$1" - OLD="`dirname $NEW`/`basename $NEW .new`" + 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 + 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... } -config etc/dillorc.new -config etc/dpidrc.new +config etc/dillo/dillorc.new +config etc/dillo/dpidrc.new +config etc/dillo/keysrc.new + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + |