mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Log installer output, addresses #721
This commit is contained in:
parent
30ed6b9026
commit
eb7c50be26
@ -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.*?(?=")' )
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user