mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-05 03:30:19 -06:00
bare-metal-deploy. getting latest version
This commit is contained in:
@@ -35,9 +35,10 @@ function backup_file () {
|
||||
}
|
||||
|
||||
function get_latest_version() {
|
||||
latest_version=`curl --silent "https://api.github.com/repos/opencloud-eu/opencloud/releases/latest" \
|
||||
| jq -r .tag_name \
|
||||
| sed -e s/^v//`
|
||||
latest_version=$(curl -s https://api.github.com/repos/opencloud-eu/opencloud/releases/latest \
|
||||
| grep '"tag_name":' \
|
||||
| awk -F: '{print $2}' \
|
||||
| tr -d ' ",v')
|
||||
}
|
||||
|
||||
# URL pattern of the download file
|
||||
|
||||
Reference in New Issue
Block a user