summaryrefslogtreecommitdiff
path: root/development/netbeans/doinst.sh
diff options
context:
space:
mode:
authorAndre Barboza <bmg.andre@gmail.com>2017-01-20 09:20:42 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-01-20 19:35:27 +0700
commit5353d82b3a9abb1ab667cc488d195083649440f1 (patch)
tree025003d627cdcb19eb47e0dde75c88ddc6064ac3 /development/netbeans/doinst.sh
parent6027bb5a54cda3fab90ba9d741135732e6e2f1d8 (diff)
downloadslackbuilds-5353d82b3a9abb1ab667cc488d195083649440f1.tar.gz
development/netbeans: Updated for version 8.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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