fix(scripts): retry usage fetch in watch mode

This commit is contained in:
2026-09-20 06:44:21 -04:00
parent f64ac274db
commit 2b8a529878
+5 -1
View File
@@ -184,7 +184,11 @@ require_command jq
find_auth_file find_auth_file
while true; do while true; do
response=$(fetch_usage) if ! response=$(fetch_usage); then
[[ -n "$watch_interval" ]] || exit 1
sleep "$watch_interval"
continue
fi
print_usage "$response" print_usage "$response"
[[ -n "$watch_interval" ]] || break [[ -n "$watch_interval" ]] || break