1
0
mirror of https://git.lyx.org/repos/lyx.git synced 2025-01-23 00:38:01 +00:00

27 lines
289 B
Bash
Raw Normal View History

#!/bin/bash
KT=`dirname "$0"`
. "$KT/shared_functions.sh"
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
kill_all_children $$
exit 1
fi
done
kill_all_children $$
echo DONE $N TIMES