summaryrefslogtreecommitdiffstats
path: root/development/eclipse-java/doinst.sh
diff options
context:
space:
mode:
author Andrew Clemons <andrew.clemons@gmail.com>2019-06-23 16:16:38 +1200
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2019-06-29 08:17:54 +0700
commit3d32d7ea5a5bc42ae8615182aef42df1c177f337 (patch)
treeacfff5139f63e29b49d64dcebe33944a1fda78b4 /development/eclipse-java/doinst.sh
parent5f9b7c450c60bc3e81a9b223ba349ef044fd55f8 (diff)
downloadslackbuilds-3d32d7ea5a5bc42ae8615182aef42df1c177f337.tar.gz
slackbuilds-3d32d7ea5a5bc42ae8615182aef42df1c177f337.tar.xz
development/eclipse-java: Updated for version 4.12.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Diffstat (limited to 'development/eclipse-java/doinst.sh')
-rw-r--r--development/eclipse-java/doinst.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/development/eclipse-java/doinst.sh b/development/eclipse-java/doinst.sh
index bd675bbac6..912705eb73 100644
--- a/development/eclipse-java/doinst.sh
+++ b/development/eclipse-java/doinst.sh
@@ -1,14 +1,11 @@
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
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
rm $NEW
fi
- # Otherwise, we leave the .new copy for the admin to consider...
}
if [ -x /usr/bin/update-desktop-database ]; then