add error checking for aws_logs

This commit is contained in:
Tony Blyler 2022-10-10 23:39:20 -04:00
parent 8bb516c4dd
commit af321981a5
No known key found for this signature in database

View file

@ -42,6 +42,8 @@ fi
aws_logs() {
(
set -euo pipefail
if [ -z "${LOG_GROUP:-}" ]; then
LOG_GROUP="$(aws logs describe-log-groups | jq -r '.logGroups | .[] | .logGroupName' | fzf -1)"
fi