Files
termux-packages/scripts/updates/internal/termux_gitlab_auto_update.sh
termux-pacman-bot 0a7cf652ff Update repo
2025-12-21 06:46:22 +00:00

12 lines
335 B
Bash

# shellcheck shell=bash
# Default algorithm to use for packages hosted on gitlab instances.
termux_gitlab_auto_update() {
local latest_tag
latest_tag="$(termux_gitlab_api_get_tag)"
if [[ -z "${latest_tag}" ]]; then
termux_error_exit "Unable to get tag from ${TERMUX_PKG_SRCURL}"
fi
termux_pkg_upgrade_version "${latest_tag}"
}