mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-02-10 21:37:30 +01:00
run-nightly.sh: run cron.sh in the background
Check that cron.sh is not already running. With no new snapshot cron.sh takes about 1min.
This commit is contained in:
parent
ad174b354c
commit
37b14ac860
@ -4,11 +4,11 @@ cd "$(dirname "${BASH_SOURCE[0]}")"
|
|||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
./build.sh nightly-$(date -u +%F)
|
./build.sh nightly-$(date -u +%F)
|
||||||
|
if ! pgrep cron.sh >/dev/null; then
|
||||||
date
|
echo
|
||||||
echo -n "Running cron.sh (do not interrupt)... "
|
echo "Running cron.sh in the background"
|
||||||
./cron.sh > cron.log 2>&1
|
./cron.sh > cron.log 2>&1 &
|
||||||
echo "done."
|
fi
|
||||||
echo
|
echo
|
||||||
date
|
date
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user