Support dynamic resource selection

This commit is contained in:
Ohad Livne 2026-01-29 23:15:28 +02:00
parent c16e517a9c
commit 040f83561c
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D
6 changed files with 29 additions and 11 deletions

View file

@ -5,11 +5,14 @@ IFS=$'\n\t'
package=kingfisher
repo=mongodb/kingfisher
resource=kingfisher-linux-x64.tgz
kingfisher_resource() {
echo "kingfisher-linux-x64.tgz"
}
install_kingfisher() {
tar xz --directory="$(systemd-path user-binaries)" kingfisher
chmod 550 "$(systemd-path user-binaries)"/kingfisher
}
github_update "${package}" "${repo}" "${resource}" install_kingfisher
github_update "${package}" "${repo}" kingfisher_resource install_kingfisher