Skip to content

Commit

Permalink
Fix shellcheck detected errors
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
y-higuchi authored and jonohart committed Jan 19, 2017
1 parent 7789953 commit 2f39b54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tools/build/onos-blackduck-zip
Expand Up @@ -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
Expand All @@ -65,4 +65,4 @@ cd ..
rm -r $FOLDER

cd $ONOS_ROOT
git checkout $CURRENT_TAG
git checkout $CURRENT_TAG
2 changes: 1 addition & 1 deletion tools/build/onos-package
Expand Up @@ -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
Expand Down

0 comments on commit 2f39b54

Please sign in to comment.