The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Harden the glob in cross-version test scripts (#77182)
Nemanja Glumac107df96fbd66
diff --git a/cross-version/dev.sh b/cross-version/dev.shindex a8dae9d95c6..86fb15d7c4a 100755--- a/cross-version/dev.sh+++ b/cross-version/dev.sh@@ -74,6 +74,8 @@ if [[ ! -d "$SPECS_DIR" ]]; thenclosest=""closest_dist=999for dir in "$REPO_ROOT"/e2e/cross-version/[0-9]*/; do+ # Skip the literal pattern when the glob matches no numbered folders+ [[ -d "$dir" ]] || continuev=$(basename "$dir")(( v < MAJOR )) && continuedist=$(( v - MAJOR ))diff --git a/cross-version/test.sh b/cross-version/test.shindex 41f82967a52..42de360ff87 100755--- a/cross-version/test.sh+++ b/cross-version/test.sh@@ -89,6 +89,8 @@ run_e2e() {if [[ ! -d "$specs_dir" ]]; thenlocal closest="" closest_dist=999for dir in "$REPO_ROOT"/e2e/cross-version/[0-9]*/; do+ # Skip the literal pattern when the glob matches no numbered folders+ [[ -d "$dir" ]] || continuelocal v=$(basename "$dir")(( v < major )) && continuelocal dist=$(( v - major ))