mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-09-19 19:31:17 +00:00
Update w/ api.raspap.com
This commit is contained in:
parent
1b47fcf2a9
commit
b2b19cd159
|
@ -183,7 +183,7 @@ function _display_welcome() {
|
||||||
function _get_release() {
|
function _get_release() {
|
||||||
readonly 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.*?(?=")' )
|
||||||
if [ "$insiders" == 1 ]; then
|
if [ "$insiders" == 1 ]; then
|
||||||
readonly RASPAP_INSIDERS_LATEST=$(curl -s "https://install.raspap.com/repos/RaspAP/raspap-insiders/releases/latest/" | grep -Po '"tag_name": "\K.*?(?=")' )
|
readonly RASPAP_INSIDERS_LATEST=$(curl -s "https://api.raspap.com/repos/RaspAP/raspap-insiders/releases/latest/" | grep -Po '"tag_name": "\K.*?(?=")' )
|
||||||
readonly RASPAP_RELEASE="${RASPAP_INSIDERS_LATEST} Insiders"
|
readonly RASPAP_RELEASE="${RASPAP_INSIDERS_LATEST} Insiders"
|
||||||
else
|
else
|
||||||
readonly RASPAP_RELEASE="${RASPAP_LATEST}"
|
readonly RASPAP_RELEASE="${RASPAP_LATEST}"
|
||||||
|
|
Loading…
Reference in a new issue