From eb7c50be268d6af40d5ff2be60ceda49c6a2a3d0 Mon Sep 17 00:00:00 2001 From: Bill Zimmerman Date: Wed, 2 Dec 2020 22:43:36 +0100 Subject: [PATCH] Log installer output, addresses #721 --- installers/raspbian.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/installers/raspbian.sh b/installers/raspbian.sh index bc8c5aab..89f56514 100755 --- a/installers/raspbian.sh +++ b/installers/raspbian.sh @@ -51,6 +51,11 @@ readonly ANSI_RASPBERRY="\033[0;35m" readonly ANSI_ERROR="\033[1;37;41m" readonly ANSI_RESET="\033[m" +# Log output +readonly LOGFILE_PATH="/tmp" +exec > >(tee -i $LOGFILE_PATH/raspap_install.log) +exec 2>&1 + # Fetch latest release from GitHub API readonly RASPAP_LATEST=$(curl -s "https://api.github.com/repos/$repo/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")' )