mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
update get_release
This commit is contained in:
parent
64ee7b4f3d
commit
fa8c6548a5
@ -37,7 +37,7 @@ function _main() {
|
|||||||
# set defaults
|
# set defaults
|
||||||
repo="billz/raspap-webgui" # override with -r, --repo option
|
repo="billz/raspap-webgui" # override with -r, --repo option
|
||||||
_get_release
|
_get_release
|
||||||
branch="$RASPAP_LATEST" # override with -b, --branch option
|
branch=$RASPAP_LATEST # override with -b, --branch option
|
||||||
_parse_params "$@"
|
_parse_params "$@"
|
||||||
_setup_colors
|
_setup_colors
|
||||||
_log_output
|
_log_output
|
||||||
@ -167,7 +167,7 @@ function _display_welcome() {
|
|||||||
|
|
||||||
# Fetch latest release from GitHub API
|
# Fetch latest release from GitHub API
|
||||||
function _get_release() {
|
function _get_release() {
|
||||||
RASPAP_LATEST=$(curl -s "https://api.github.com/repos/$repo/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")' )
|
readonly RASPAP_LATEST=$(curl -s "https://api.github.com/repos/$repo/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")' )
|
||||||
}
|
}
|
||||||
|
|
||||||
# Outputs a RaspAP Install log line
|
# Outputs a RaspAP Install log line
|
||||||
|
Loading…
x
Reference in New Issue
Block a user