14 lines
382 B
Bash
Executable file
14 lines
382 B
Bash
Executable file
#! /usr/bin/sh
|
|
|
|
package=rust-analyzer
|
|
repo=rust-lang/rust-analyzer
|
|
resource=rust-analyzer-x86_64-unknown-linux-gnu.gz
|
|
|
|
install_rust_analyzer() {
|
|
tempfile="$(mktemp)"
|
|
gunzip --to-stdout - > "${tempfile}"
|
|
chmod 550 "${tempfile}"
|
|
mv "${tempfile}" "$(systemd-path user-binaries)"/rust-analyzer
|
|
}
|
|
|
|
github_update "${package}" "${repo}" "${resource}" install_rust_analyzer
|