mirror of
https://github.com/AquaMorph/dotfiles.git
synced 2026-09-29 20:04:21 +00:00
fix(scripts): retry usage fetch in watch mode
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user