Commit 593f19c8 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

fix: sanitize variable substitution pattern

replace '${foo+repl}' pattern with '${foo:+repl}' (latest supports $foo being defined but empty)
parent b5baf546
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -397,7 +397,7 @@ bruno:
          log_info "Running collection \\e[33;1m./${collection}\\e[0m..."
          namenopunct=$(basename $collection | tr '[:punct:]' '_')
          junit_report="$CI_PROJECT_DIR/reports/bruno-$namenopunct.xunit.xml"
          if ! bru run -r --output "$junit_report" --format junit $cacerts_opt ${BRU_BASE_URL+--env-var "base_url=$BRU_BASE_URL"} $BRU_EXTRA_ARGS
          if ! bru run -r --output "$junit_report" --format junit $cacerts_opt ${BRU_BASE_URL:+--env-var "base_url=$BRU_BASE_URL"} $BRU_EXTRA_ARGS
          then
            log_error "Collection \\e[33;1m./${collection}\\e[0m failed"
            rc=1