diff --git a/tools/build/onos-blackduck-zip b/tools/build/onos-blackduck-zip index 5b0e8b76c1..876046023c 100755 --- a/tools/build/onos-blackduck-zip +++ b/tools/build/onos-blackduck-zip @@ -39,7 +39,7 @@ check_copy() { [ -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 @@ cd .. rm -r $FOLDER cd $ONOS_ROOT -git checkout $CURRENT_TAG \ No newline at end of file +git checkout $CURRENT_TAG diff --git a/tools/build/onos-package b/tools/build/onos-package index 1700b3c1af..18619da857 100755 --- a/tools/build/onos-package +++ b/tools/build/onos-package @@ -204,7 +204,7 @@ function build_rpm() { set -e [[ $# == 0 ]] && ONOS_PACKAGE_TAR_arg=true -while [[ $# > 0 ]]; do +while [[ $# -gt 0 ]]; do case $1 in -t|--tar) ONOS_PACKAGE_TAR_arg=true