summaryrefslogtreecommitdiff
path: root/usr/src/tools/scripts/nightly.sh
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/tools/scripts/nightly.sh')
-rw-r--r--usr/src/tools/scripts/nightly.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr/src/tools/scripts/nightly.sh b/usr/src/tools/scripts/nightly.sh
index 91168264d2..272ed4ebe8 100644
--- a/usr/src/tools/scripts/nightly.sh
+++ b/usr/src/tools/scripts/nightly.sh
@@ -27,6 +27,7 @@
# Copyright 2012 Joshua M. Clulow <josh@sysmgr.org>
# Copyright 2018 (c) Joyent, Inc. All rights reserved.
# Copyright (c) 2017 by Delphix. All rights reserved.
+# Copyright 2018 Joyent, Inc.
#
# Based on the nightly script from the integration folks,
# Mostly modified and owned by mike_s.
@@ -1024,7 +1025,9 @@ function logshuffle {
if [ -f $LLOG -o -d $LLOG ]; then
LLOG=$LLOG.$$
fi
- mkdir $LLOG
+
+ rm -f "$ATLOG/latest" 2>/dev/null
+ mkdir -p $LLOG
export LLOG
if [ "$build_ok" = "y" ]; then
@@ -1106,6 +1109,8 @@ function logshuffle {
fi
mv $LOGFILE $LLOG
+
+ ln -s "$LLOG" "$ATLOG/latest"
}
#