1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

Minor: cleanup + comments

This commit is contained in:
billz 2021-03-09 12:12:11 +00:00
parent 45965c4ae0
commit 13997d57a9

View File

@ -221,7 +221,6 @@ function _update_system_packages() {
# Fetch required installer functions # Fetch required installer functions
function _load_installer() { function _load_installer() {
# fetch latest release tag # fetch latest release tag
_get_release _get_release
@ -230,11 +229,13 @@ function _load_installer() {
branch=$RASPAP_LATEST branch=$RASPAP_LATEST
fi fi
UPDATE_URL="https://raw.githubusercontent.com/$repo/$branch/" # add optional auth token header if defined with -t, --token option
header=() header=()
if [[ ! -z "$acctoken" ]]; then if [[ ! -z "$acctoken" ]]; then
header=(--header "Authorization: token $acctoken") header=(--header "Authorization: token $acctoken")
fi fi
UPDATE_URL="https://raw.githubusercontent.com/$repo/$branch/"
if [ "${install_cert:-}" = 1 ]; then if [ "${install_cert:-}" = 1 ]; then
source="mkcert" source="mkcert"
wget "${header[@]}" -q ${UPDATE_URL}installers/${source}.sh -O /tmp/raspap_${source}.sh wget "${header[@]}" -q ${UPDATE_URL}installers/${source}.sh -O /tmp/raspap_${source}.sh