17 lines
578 B
Bash
17 lines
578 B
Bash
#!/usr/bin/env bash
|
|
|
|
function get_latest_novos_version() {
|
|
curl -sL $(getValueByKey "url")/releases/latest | grep "Novos/ISO/releases/tag" | awk '{$1=$1};1' | cut -d'>' -f2 | cut -d'<' -f1 | cut -d- -f1
|
|
}
|
|
|
|
function get_latest_alpine_release() {
|
|
curl -sL $(getValueByKey "url")/releases/latest | grep "Novos/ISO/releases/tag" | awk '{$1=$1};1' | cut -d'>' -f2 | cut -d'<' -f1 | cut -d_ -f2
|
|
}
|
|
|
|
function get_current_novos_version() {
|
|
cat /etc/os-release | grep VERSION_ID | cut -d= -f2 | jq -r '.'
|
|
}
|
|
|
|
function get_cached_novos_version() {
|
|
cat "$RUN_DIR/upstream_release"
|
|
}
|