diff --git a/automated/run-nightly.sh b/automated/run-nightly.sh index 15bc25dc..d598db90 100755 --- a/automated/run-nightly.sh +++ b/automated/run-nightly.sh @@ -2,12 +2,17 @@ cd "$(dirname "${BASH_SOURCE[0]}")" +case $1 in + 1) once=1 ;; + *) cmd=$1 +esac + while true; do git pull - ./build.sh nightly-$(date -u +%F) $1 - ${1:+exit 0} + ./build.sh nightly-$(date -u +%F) $cmd + ${cmd:+exit 0} date - + ${once:+exit 0} sleep 60m echo done