mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Update version method
This commit is contained in:
parent
5f4bd25ddc
commit
23d1ab83c7
@ -8,7 +8,7 @@
|
|||||||
# Assume "yes" as answer to all prompts and run non-interactively
|
# Assume "yes" as answer to all prompts and run non-interactively
|
||||||
|
|
||||||
UPDATE_URL="https://raw.githubusercontent.com/billz/raspap-webgui/master/"
|
UPDATE_URL="https://raw.githubusercontent.com/billz/raspap-webgui/master/"
|
||||||
VERSION=$(curl -s https://api.github.com/repos/billz/raspap-webgui/releases/latest | jq -r .tag_name)
|
VERSION=$(curl -s "https://api.github.com/repos/billz/raspap-webgui/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")' )
|
||||||
USAGE="Usage: -y, --yes, --assume-yes, -c --cert"
|
USAGE="Usage: -y, --yes, --assume-yes, -c --cert"
|
||||||
assume_yes=0
|
assume_yes=0
|
||||||
|
|
||||||
@ -65,6 +65,11 @@ function install_warning() {
|
|||||||
echo -e "\033[1;33mWarning: $*\033[m"
|
echo -e "\033[1;33mWarning: $*\033[m"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Outputs a RaspAP divider
|
||||||
|
function install_divider() {
|
||||||
|
echo -e "\033[1;32m***************************************************************$*\033[m"
|
||||||
|
}
|
||||||
|
|
||||||
function update_system_packages() {
|
function update_system_packages() {
|
||||||
install_log "Updating sources"
|
install_log "Updating sources"
|
||||||
sudo apt-get update || install_error "Unable to update package list"
|
sudo apt-get update || install_error "Unable to update package list"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user