diff options
Diffstat (limited to 'bin/rep.sh')
-rw-r--r-- | bin/rep.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -11,13 +11,13 @@ fi c=$1 shift -# Check the repetition count looks sane. Zero is fine! +# Check the repetition count looks sane. Zero is fine! if [ "$c" -lt 0 ] ; then printf >&2 '%s: Nonsensical negative count\n' "$self" exit 2 fi -# Run the command the specified number of times. Stop immediately as soon as a +# Run the command the specified number of times. Stop immediately as soon as a # run fails. while [ "${n=1}" -le "$c" ] ; do "$@" || exit |