summaryrefslogtreecommitdiff
path: root/development/netbeans/doinst.sh
diff options
context:
space:
mode:
authorSukma Wardana <sukma.wardana@mail.com>2019-07-27 07:46:04 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-07-27 07:46:04 +0700
commitf39074cd3a74e998b80ee617203d8e6aac534b3c (patch)
tree2cdbf10adf53e0784881ad21e602f74e81eb5f00 /development/netbeans/doinst.sh
parent082ad462980d7cb1730c4ddc781e35f1e1401a59 (diff)
downloadslackbuilds-f39074cd3a74e998b80ee617203d8e6aac534b3c.tar.gz
development/netbeans: Updated for version 11.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/netbeans/doinst.sh')
-rw-r--r--development/netbeans/doinst.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/development/netbeans/doinst.sh b/development/netbeans/doinst.sh
index 47132aecc5..82f43414ca 100644
--- a/development/netbeans/doinst.sh
+++ b/development/netbeans/doinst.sh
@@ -1,10 +1,10 @@
config() {
NEW="$1"
- OLD="$(dirname $NEW)/$(basename $NEW .new)"
- if [ ! -r $OLD ]; then
- mv $NEW $OLD
- elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
- rm $NEW
+ OLD="$(dirname ${NEW})/$(basename ${NEW} .new)"
+ if [ ! -r ${OLD} ]; then
+ mv ${NEW} ${OLD}
+ elif [ "$(cat ${OLD} | md5sum)" = "$(cat ${NEW} | md5sum)" ]; then
+ rm ${NEW}
fi
}