chore(main/ipmitool): enable automatic updates [no ci]
This commit is contained in:
parent
9a73ee16d7
commit
3c2296dd77
|
@ -10,3 +10,9 @@ TERMUX_PKG_DEPENDS="openssl, readline"
|
|||
termux_step_pre_configure() {
|
||||
sh bootstrap
|
||||
}
|
||||
|
||||
termux_pkg_auto_update() {
|
||||
local latest_tag="$(termux_github_api_get_tag "${TERMUX_PKG_SRCURL}")"
|
||||
[[ -z "${latest_tag}" ]] && termux_error_exit "ERROR: Unable to get tag from ${TERMUX_PKG_SRCURL}"
|
||||
termux_pkg_upgrade_version "$(sed -n 's/^IPMITOOL_\([0-9]\+\)_\([0-9]\+\)_\([0-9]\+\)$/\1.\2.\3/p' <<< ${latest_tag})"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue