Skip to content

Commit 9630f9a

Browse files
fix: accept time fields in interval section package [code:qws] [system:MiyabiG]
1 parent 9030d1c commit 9630f9a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

scripts/estimation/section_packages/interval_time_simple.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ EOF
99
bk_section_package_check_applicability_interval_time_simple() {
1010
local item_json="$1"
1111
local _item_kind="$2"
12-
local has_time
1312

14-
has_time=$(echo "$item_json" | jq -r 'if (.time // .bench_time // empty) == empty then "no" else "yes" end')
15-
if [[ "$has_time" != "yes" ]]; then
13+
if ! echo "$item_json" | jq -e '(.time != null) or (.bench_time != null)' >/dev/null 2>&1; then
1614
cat <<'EOF'
1715
{"status":"not_applicable","missing_inputs":["item_time"]}
1816
EOF

0 commit comments

Comments
 (0)