Short-circuit installation commands on failure
This commit is contained in:
parent
6b27d7e5e2
commit
34d62d92b2
5 changed files with 16 additions and 16 deletions
|
|
@ -11,10 +11,10 @@ rust_analyzer_resource() {
|
|||
}
|
||||
|
||||
install_rust_analyzer() {
|
||||
tempfile="$(mktemp)"
|
||||
gunzip --to-stdout - > "${tempfile}"
|
||||
chmod 550 "${tempfile}"
|
||||
mv "${tempfile}" "$(systemd-path user-binaries)"/rust-analyzer
|
||||
tempfile="$(mktemp)" && \
|
||||
gunzip --to-stdout - > "${tempfile}" && \
|
||||
chmod 550 "${tempfile}" && \
|
||||
mv "${tempfile}" "$(systemd-path user-binaries)"/rust-analyzer
|
||||
}
|
||||
|
||||
github_update "${package}" "${repo}" rust_analyzer_resource install_rust_analyzer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue