mirror of
https://github.com/notwa/rc
synced 2025-02-05 07:43:22 -08:00
fix bug
This commit is contained in:
parent
c953c670f7
commit
28d87b4616
1 changed files with 1 additions and 1 deletions
2
sh/asn
2
sh/asn
|
@ -70,7 +70,7 @@ __asn() {
|
||||||
if [ $? = 1 ]; then
|
if [ $? = 1 ]; then
|
||||||
printf '%-7s | %-16s | %s\n' "n/a" "$1" "n/a"
|
printf '%-7s | %-16s | %s\n' "n/a" "$1" "n/a"
|
||||||
elif [ "$attempt" -lt 2 ]; then
|
elif [ "$attempt" -lt 2 ]; then
|
||||||
sleep 4 && asn "$1" $((attempt+1))
|
sleep 4 && __asn "$1" $((attempt+1))
|
||||||
else
|
else
|
||||||
printf '%-7s | %-16s | %s\n' "(fail)" "$1" "(failed to retrieve data, try again)"
|
printf '%-7s | %-16s | %s\n' "(fail)" "$1" "(failed to retrieve data, try again)"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue