Fix shellcheck detected errors
- onos-package
SC2071: > is for string comparisons. Use -gt instead.
- ./tools/build/onos-blackduck-zip
SC1035: You need a space after the [ and before the ].
Change-Id: I409b4a181e9cd49795afbdaa68b68c26413b9401
diff --git a/tools/build/onos-blackduck-zip b/tools/build/onos-blackduck-zip
index 5b0e8b7..8760460 100755
--- a/tools/build/onos-blackduck-zip
+++ b/tools/build/onos-blackduck-zip
@@ -39,7 +39,7 @@
[ -d "$FOLDER" ] && rm -r $FOLDER
mkdir $FOLDER
mvn clean install
- if [$? -eq 0 ]; then
+ if [ $? -eq 0 ]; then
cp -r -a * $FOLDER;
if [ -d "$FOLDER/.git" ]; then
rm -r $FOLDER/.git
@@ -65,4 +65,4 @@
rm -r $FOLDER
cd $ONOS_ROOT
-git checkout $CURRENT_TAG
\ No newline at end of file
+git checkout $CURRENT_TAG