eplace `-v` Operator to Ensure Compatibility (#1185)

Replaced the `-v` operator with a more universally compatible method for variable checking in the bash script. The update uses parameter expansion to check if a variable is set, ensuring the script runs smoothly on environments with different Bash versions.

Issue: https://github.com/openimsdk/open-im-server/issues/1182
pull/1183/head
Xinwei Xiong 9 months ago committed by GitHub
parent 8e6ee2b80f
commit d8dbcbbec6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -20,7 +20,7 @@
################################################################################
# shellcheck disable=SC2034
if [[ ! -v COLOR_OPEN ]]; then
if [ -z "${COLOR_OPEN+x}" ]; then
COLOR_OPEN=1
fi

Loading…
Cancel
Save