mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-02-20 18:25:48 +01:00
automated fixup: touch the symlink not the log file!
This commit is contained in:
parent
cdb1eb7e78
commit
3fb5ae5605
@ -6,5 +6,5 @@ git pull
|
|||||||
LOG_FILE="$1-build-$(date -u +%F_%T).log"
|
LOG_FILE="$1-build-$(date -u +%F_%T).log"
|
||||||
ln -sf $LOG_FILE lts-build.log
|
ln -sf $LOG_FILE lts-build.log
|
||||||
time script -q -c "./build.sh $*" $LOG_FILE
|
time script -q -c "./build.sh $*" $LOG_FILE
|
||||||
touch -h $LOG_FILE
|
touch -h lts-build.log
|
||||||
date
|
date
|
||||||
|
|||||||
@ -15,7 +15,7 @@ while true; do
|
|||||||
fi
|
fi
|
||||||
ln -sf $LOG_FILE nightly-build.log
|
ln -sf $LOG_FILE nightly-build.log
|
||||||
time script -c "./build.sh nightly-$(date -u +%F) $cmd" $LOG_FILE
|
time script -c "./build.sh nightly-$(date -u +%F) $cmd" $LOG_FILE
|
||||||
touch -h $LOG_FILE
|
touch -h nightly-build.log
|
||||||
${cmd:+exit 0}
|
${cmd:+exit 0}
|
||||||
${once:+date; exit 0}
|
${once:+date; exit 0}
|
||||||
echo "$0: run completed at $(date)"
|
echo "$0: run completed at $(date)"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user