summaryrefslogtreecommitdiffstats
path: root/development/netbeans/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'development/netbeans/doinst.sh')
-rw-r--r--development/netbeans/doinst.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/development/netbeans/doinst.sh b/development/netbeans/doinst.sh
index 36cc15779d..75b1c69fe1 100644
--- a/development/netbeans/doinst.sh
+++ b/development/netbeans/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
@@ -22,7 +19,7 @@ fi
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
- fi
+ fi
fi
config opt/netbeans/etc/netbeans.conf.new