#!/usr/bin/env sh

set -o errexit
set -o nounset

SLEEP="$1"
shift -- 1

until chronic -- "$@"; do
  sleep -- "${SLEEP}"
done
