Use -gt as comparison operator (#9497)

6.19.x
Eugene Ivantsov 2018-04-19 15:57:24 +03:00 committed by GitHub
parent 64a2905acd
commit b062bdfb33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ deploy_che_to_ocp() {
wait_for_keycloak
fi
CHE_VAR_ARRAY=$(env | grep "^CHE_.")
if [ ${#CHE_VAR_ARRAY[@]} > 0 ]; then
if [ ${#CHE_VAR_ARRAY[@]} -gt 0 ]; then
ENV="-e ${CHE_VAR_ARRAY}"
fi