diff options
author | Sukma Wardana <sukma.wardana@mail.com> | 2019-07-27 07:46:04 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-07-27 07:46:04 +0700 |
commit | f39074cd3a74e998b80ee617203d8e6aac534b3c (patch) | |
tree | 2cdbf10adf53e0784881ad21e602f74e81eb5f00 /development/netbeans/doinst.sh | |
parent | 082ad462980d7cb1730c4ddc781e35f1e1401a59 (diff) | |
download | slackbuilds-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.sh | 10 |
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 } |