Support dynamic resource selection
This commit is contained in:
parent
4cc2af055d
commit
0e61f5f32f
6 changed files with 29 additions and 11 deletions
|
|
@ -5,11 +5,14 @@ IFS=$'\n\t'
|
|||
|
||||
package=dolt
|
||||
repo=dolthub/dolt
|
||||
resource=dolt-linux-amd64.tar.gz
|
||||
|
||||
dolt_resource() {
|
||||
echo "dolt-linux-amd64.tar.gz"
|
||||
}
|
||||
|
||||
install_dolt() {
|
||||
tar xz --directory="$(systemd-path user-binaries)" --strip-components=2 dolt-linux-amd64/bin/dolt
|
||||
chmod 550 "$(systemd-path user-binaries)"/dolt
|
||||
}
|
||||
|
||||
github_update "${package}" "${repo}" "${resource}" install_dolt
|
||||
github_update "${package}" "${repo}" dolt_resource install_dolt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue