add error checking for aws_logs
This commit is contained in:
parent
8bb516c4dd
commit
af321981a5
1 changed files with 2 additions and 0 deletions
|
@ -42,6 +42,8 @@ fi
|
||||||
|
|
||||||
aws_logs() {
|
aws_logs() {
|
||||||
(
|
(
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
if [ -z "${LOG_GROUP:-}" ]; then
|
if [ -z "${LOG_GROUP:-}" ]; then
|
||||||
LOG_GROUP="$(aws logs describe-log-groups | jq -r '.logGroups | .[] | .logGroupName' | fzf -1)"
|
LOG_GROUP="$(aws logs describe-log-groups | jq -r '.logGroups | .[] | .logGroupName' | fzf -1)"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue