fix json output

This commit is contained in:
Mason Rowe 2024-12-20 01:30:51 -05:00 committed by GitHub
parent e0c38bb933
commit 729cb553c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1021,7 +1021,7 @@ function calculate_time_taken() {
else
echo "YABS completed in ${time_taken} sec"
fi
[[ -n $JSON ]] && JSON_RESULT+=",\"runtime\":{\"start\":'$start_time',\"end\":'$end_time',\"elapsed\":'$time_taken'}"
[[ -n $JSON ]] && JSON_RESULT+=",\"runtime\":{\"start\":$start_time,\"end\":$end_time,\"elapsed\":$time_taken}"
}
calculate_time_taken "$YABS_END_TIME" "$YABS_START_TIME"