From a33f795d9b1c9b53feab113b009f8e0890512b05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Diemer?= <stephane.diemer@ubicast.eu> Date: Fri, 24 Nov 2017 09:56:29 +0100 Subject: [PATCH] Log envsetup version in launcher (refs #23445). --- launcher.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/launcher.sh b/launcher.sh index 946567c0..cf46eef0 100755 --- a/launcher.sh +++ b/launcher.sh @@ -11,10 +11,17 @@ set -e # 3. launcher.sh # log -LOGFILE=/root/$(date +%F)_envsetup.log -exec > >(tee -i ${LOGFILE}) +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +mkdir -p "${DIR}/log" +LOG_FILE="${DIR}/log/launcher_$(date +%F).log" +exec > >(tee -i ${LOG_FILE}) -## envsetup action calls +# log envsetup version +version="$( cd "${DIR}" && git log -1 --pretty='format:%H %ad' --date=iso )" +echo "Envsetup version:" +echo "$version" + +# envsetup action calls init() { python3 /root/envsetup/envsetup.py 31 python3 /root/envsetup/envsetup.py 32 -- GitLab