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()
|
||||
{
|
||||
counter=0
|
||||
while :; do
|
||||
counter=$(echo "1 + $counter" | bc)
|
||||
"$@"
|
||||
test $? -eq 0 && break
|
||||
# give up?
|
||||
test "$counter" -ge 3 && break
|
||||
for _ in a b c; do
|
||||
"$@" && break
|
||||
sleep 15
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue