Support dynamic resource selection
This commit is contained in:
parent
c16e517a9c
commit
040f83561c
6 changed files with 29 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue