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