#! /usr/bin/bash set -euo pipefail IFS=$'\n\t' package=uv repo=astral-sh/uv uv_resource() { echo "uv-x86_64-unknown-linux-gnu.tar.gz" } install_uv() { tempdir="$(mktemp --directory)" tar xz --directory="${tempdir}" --strip-components=1 && \ chmod 550 "${tempdir}"/uv "${tempdir}"/uvx && \ mv --force "${tempdir}"/uv "${tempdir}"/uvx "$(systemd-path user-binaries)" } github_update "${package}" "${repo}" uv_resource install_uv