#! /usr/bin/bash set -euo pipefail IFS=$'\n\t' 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