mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-18 10:51:04 +02:00
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:
parent
77899538d0
commit
2f39b54fd5
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user