haskell-relational-record/travis-CI/sh-lib
2017-02-01 17:59:45 +09:00

13 lines
172 B
Bash

## -*- sh -*-
custom_retry() {
i=0
until "$@" ; do
if [ $i -ge 3 ]; then
break;
fi
sleep 1
i=$(expr $i + 1)
done
}