diff options
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 47132aecc5879..82f43414cabe4 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 } |