Add command to quickstart log for future debug

When we save the whole quickstart log let's save the command also
to know what exactly was executed.

Change-Id: I269a7816cc8320214104fd978d27550d1267e91d
This commit is contained in:
Sagi Shnaidman 2018-02-05 17:17:49 +02:00
parent be788f02e8
commit e97c11c5cf
1 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,8 @@ if [ -t 1 ] ; then
export ANSIBLE_FORCE_COLOR=true
fi
# Log everything from this script into _quickstart.log
exec &> >(tee -i _quickstart.log )
echo "$0 $@" > _quickstart.log
exec &> >(tee -i -a _quickstart.log )
# With LANG set to everything else than C completely undercipherable errors
# like "file not found" and decoding errors will start to appear during scripts