-
-
Notifications
You must be signed in to change notification settings - Fork 231
Open
Description
I have this Dagu step
- name: source_video_filesize
output: source_video_filesize
depends:
- b2_file_info_source_video
- is_source_video
type: jq
config:
raw: true
command: ".size"
script: ${b2_file_info_source_video}
preconditions:
- condition: test ${is_source_video} == "true"With this b2_file_info_source_video
{
"cacheControl": "max-age=604800",
"contentSha1": "none",
"contentType": "video/mp4",
"fileId": "4_z2d53275f21937a6993a30b18_f219a46405cf6aa0c_d20260208_m132426_c000_v0001402_t0013_u01770557066977",
"fileInfo": {
"plan_id": "aabe3894e96d4dc7f368b78d4287c403169e80dd"
},
"fileName": "pbc_144770472/qax88ju53qcty78/sample.mp4",
"fileRetention": {
"mode": null,
"retainUntilTimestamp": null
},
"legalHold": null,
"replicationStatus": null,
"serverSideEncryption": {
"mode": "none"
},
"size": 13786123706,
"uploadTimestamp": 1770557066977
}The stdout of the step is 1.3786123706e+10 but I was expecting 13786123706. CLI jq doesn't behave that way.
$ echo '{"size": 13786123706}' | jq -r ".size"
13786123706Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels