copr: aarch64 terminator shouldn't depend on bc
/bin/bc isn't installed, and depending on it just for this use-case doesn't make sense.
This commit is contained in:
parent
f77920dd27
commit
3c03c66514
1 changed files with 2 additions and 7 deletions
|
@ -16,13 +16,8 @@ esac
|
||||||
|
|
||||||
repeat()
|
repeat()
|
||||||
{
|
{
|
||||||
counter=0
|
for _ in a b c; do
|
||||||
while :; do
|
"$@" && break
|
||||||
counter=$(echo "1 + $counter" | bc)
|
|
||||||
"$@"
|
|
||||||
test $? -eq 0 && break
|
|
||||||
# give up?
|
|
||||||
test "$counter" -ge 3 && break
|
|
||||||
sleep 15
|
sleep 15
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue