Add more logging

This commit is contained in:
zador-blood-stained 2016-08-11 21:04:41 +03:00
parent 8bd6c8217b
commit 5bf1dfdd90
2 changed files with 4 additions and 2 deletions

View File

@ -589,8 +589,9 @@ download_toolchain()
display_alert "Verifying"
if grep -q 'BEGIN PGP SIGNATURE' ${filename}.asc; then
gpg --list-keys 8F427EAF || gpg --keyserver keyserver.ubuntu.com --recv-keys 8F427EAF
gpg --verify --trust-model always -q ${filename}.asc && verified=true
(gpg --list-keys 8F427EAF || gpg --keyserver keyserver.ubuntu.com --recv-keys 8F427EAF) 2>&1 | tee -a $DEST/debug/output.log
gpg --verify --trust-model always -q ${filename}.asc 2>&1 | tee -a $DEST/debug/output.log
[[ ${PIPESTATUS[0]} -eq 0 ]] && verified=true
else
md5sum -c --status ${filename}.asc && verified=true
fi

View File

@ -155,6 +155,7 @@ source $SRC/lib/configuration.sh
VERSION="Armbian $REVISION ${BOARD^} $DISTRIBUTION $RELEASE $BRANCH"
echo `date +"%d.%m.%Y %H:%M:%S"` $VERSION >> $DEST/debug/output.log
(cd $SRC/lib; echo "Build script version: $(git rev-parse @)") >> $DEST/debug/output.log
display_alert "Starting Armbian build script" "@host" "info"