We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1084f9b commit 6eafb5cCopy full SHA for 6eafb5c
services/logs.sh
@@ -41,6 +41,7 @@ aws_logs_run_query() {
41
42
# Convert the space-separated list of log groups into a JSON array
43
local log_group_json_array
44
+ # from "log-group-1 log-group-2 log-group-3" to ["log-group-1","log-group-2","log-group-3"]
45
log_group_json_array=$(printf '%s' "$log_group_names" | awk '{printf "[\"%s\"", $1; for (i=2; i<=NF; i++) printf ",\"%s\"", $i; printf "]"}')
46
47
# Execute the query
0 commit comments