Quick cleanup of the script which I have working locally and to keep it's format inline with the other installer script in case of changes in the future
diff --git a/resources/org/apache/netbeans/installermac.sh b/resources/org/apache/netbeans/installermac.sh
index 5a68c97..a075626 100644
--- a/resources/org/apache/netbeans/installermac.sh
+++ b/resources/org/apache/netbeans/installermac.sh
@@ -20,19 +20,20 @@
## param 1 workspace filename for binaries-zip
## param 2 version number xx.y (mandatory)
## param 3 timestamp YYMMDD
+## param 4 absolute file path to Apple Developer ID Certificate text file
BASE_DIR=`pwd`
NB_ALL=$BASE_DIR
export BASE_DIR NB_ALL
-DIST=$BASE_DIR/dist
-export DIST
-
if [[ "$4" ]]; then
echo 'I need 4 arguments:'
echo 'usage: installer usage [file path to Apache NetBeans binaries-zip] [versionumber formated xx.y] [timestamp YYMMDD] [path to a certificate]'
fi
+DIST=$BASE_DIR/dist
+export DIST
+
if [ -d $DIST ] ; then
rm -rf $DIST
fi
@@ -131,9 +132,6 @@
BUILD_DESC=$BASENAME_PREFIX
export NB_VER_NUMBER BUILDNUMBER BASENAME_PREFIX NB_BUILD_NUMBER DATESTAMP BUILD_DESC
-MAC_PATH=$DIST
-#export MAC_PATH
-
#To build MAC installer on mac host set BUILD_MAC to 1
BUILD_MAC=1
export BUILD_MAC