mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-01-11 23:08:30 +01:00
run-nightly.sh: use argument '1' to run once
This commit is contained in:
parent
d5fe9bf196
commit
4791f2aa47
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user