mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 14:15:32 +00:00
21 lines
212 B
Bash
21 lines
212 B
Bash
|
#!/bin/bash
|
||
|
KT=`dirname $0`
|
||
|
N=$1
|
||
|
shift
|
||
|
|
||
|
echo doNtimes .$N. "$@"
|
||
|
|
||
|
i=0
|
||
|
for intr in `yes | head -n$N`
|
||
|
do
|
||
|
i=$(($i+1))
|
||
|
echo 'TRY#' $i
|
||
|
if ! "$@"
|
||
|
then
|
||
|
echo TRIES_REQUIRED: $i
|
||
|
exit 1
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
echo DONE $N TIMES
|