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
This commit is contained in:
Yuta HIGUCHI 2017-01-18 20:09:17 -08:00 committed by Jonathan Hart
parent 77899538d0
commit 2f39b54fd5
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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