summaryrefslogtreecommitdiff
path: root/development/eclipse-jee/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'development/eclipse-jee/doinst.sh')
-rw-r--r--development/eclipse-jee/doinst.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/development/eclipse-jee/doinst.sh b/development/eclipse-jee/doinst.sh
index 01a88936a7..935abc9253 100644
--- a/development/eclipse-jee/doinst.sh
+++ b/development/eclipse-jee/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