Skip to content

Commit 8b3ba67

Browse files
authored
Merge pull request #35892 from siyuanfoundation/compat
[compatibility]: fix syntax error
2 parents aa4d292 + 4654ab2 commit 8b3ba67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

experiment/compatibility-versions/validate-compatibility-versions-feature-gates.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,9 @@ for feature_name in "${!actual_features[@]}"; do
258258
# - 1. DEPRECATED feature gate at the same version as the binary version
259259
# - 2. GA feature with version 1.0 (used for code deprecation backfilling)
260260
# - 3. BETA feature with version 1.0 (used for bug fixes bound to binary version instead of emulation version)
261-
if [[ -n "${current_version_stage[$feature_name]:-}" == "DEPRECATED" ]] || \
262-
[[ -n "${version_1_0_stage[$feature_name]:-}" == "BETA" ]] || \
263-
[[ -n "${version_1_0_stage[$feature_name]:-}" == "GA" ]]; then
261+
if [[ "${current_version_stage[$feature_name]:-}" == "DEPRECATED" ]] || \
262+
[[ "${version_1_0_stage[$feature_name]:-}" == "BETA" ]] || \
263+
[[ "${version_1_0_stage[$feature_name]:-}" == "GA" ]]; then
264264
continue
265265
fi
266266
echo "FAIL: unexpected feature '$feature_name' found in /metrics, got=1" \

0 commit comments

Comments
 (0)