Short-circuit installation commands on failure
This commit is contained in:
parent
87c66ec157
commit
4bd68f4614
5 changed files with 16 additions and 16 deletions
|
|
@ -11,8 +11,8 @@ dolt_resource() {
|
||||||
}
|
}
|
||||||
|
|
||||||
install_dolt() {
|
install_dolt() {
|
||||||
tar xz --directory="$(systemd-path user-binaries)" --strip-components=2 dolt-linux-amd64/bin/dolt
|
tar xz --directory="$(systemd-path user-binaries)" --strip-components=2 dolt-linux-amd64/bin/dolt && \
|
||||||
chmod 550 "$(systemd-path user-binaries)"/dolt
|
chmod 550 "$(systemd-path user-binaries)"/dolt
|
||||||
}
|
}
|
||||||
|
|
||||||
github_update "${package}" "${repo}" dolt_resource install_dolt
|
github_update "${package}" "${repo}" dolt_resource install_dolt
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@ kingfisher_resource() {
|
||||||
}
|
}
|
||||||
|
|
||||||
install_kingfisher() {
|
install_kingfisher() {
|
||||||
tar xz --directory="$(systemd-path user-binaries)" kingfisher
|
tar xz --directory="$(systemd-path user-binaries)" kingfisher && \
|
||||||
chmod 550 "$(systemd-path user-binaries)"/kingfisher
|
chmod 550 "$(systemd-path user-binaries)"/kingfisher
|
||||||
}
|
}
|
||||||
|
|
||||||
github_update "${package}" "${repo}" kingfisher_resource install_kingfisher
|
github_update "${package}" "${repo}" kingfisher_resource install_kingfisher
|
||||||
|
|
|
||||||
|
|
@ -11,10 +11,10 @@ minikube_resource() {
|
||||||
}
|
}
|
||||||
|
|
||||||
install_minikube() {
|
install_minikube() {
|
||||||
tempfile="$(mktemp)"
|
tempfile="$(mktemp)" && \
|
||||||
cat - > "${tempfile}"
|
cat - > "${tempfile}" && \
|
||||||
chmod 550 "${tempfile}"
|
chmod 550 "${tempfile}" && \
|
||||||
mv "${tempfile}" "$(systemd-path user-binaries)"/minikube
|
mv "${tempfile}" "$(systemd-path user-binaries)"/minikube
|
||||||
}
|
}
|
||||||
|
|
||||||
github_update "${package}" "${repo}" minikube_resource install_minikube
|
github_update "${package}" "${repo}" minikube_resource install_minikube
|
||||||
|
|
|
||||||
|
|
@ -11,10 +11,10 @@ rust_analyzer_resource() {
|
||||||
}
|
}
|
||||||
|
|
||||||
install_rust_analyzer() {
|
install_rust_analyzer() {
|
||||||
tempfile="$(mktemp)"
|
tempfile="$(mktemp)" && \
|
||||||
gunzip --to-stdout - > "${tempfile}"
|
gunzip --to-stdout - > "${tempfile}" && \
|
||||||
chmod 550 "${tempfile}"
|
chmod 550 "${tempfile}" && \
|
||||||
mv "${tempfile}" "$(systemd-path user-binaries)"/rust-analyzer
|
mv "${tempfile}" "$(systemd-path user-binaries)"/rust-analyzer
|
||||||
}
|
}
|
||||||
|
|
||||||
github_update "${package}" "${repo}" rust_analyzer_resource install_rust_analyzer
|
github_update "${package}" "${repo}" rust_analyzer_resource install_rust_analyzer
|
||||||
|
|
|
||||||
|
|
@ -11,10 +11,10 @@ uv_resource() {
|
||||||
}
|
}
|
||||||
|
|
||||||
install_uv() {
|
install_uv() {
|
||||||
tempdir="$(mktemp --directory)"
|
tempdir="$(mktemp --directory)" && \
|
||||||
tar xz --directory="${tempdir}" --strip-components=1 && \
|
tar xz --directory="${tempdir}" --strip-components=1 && \
|
||||||
chmod 550 "${tempdir}"/uv "${tempdir}"/uvx && \
|
chmod 550 "${tempdir}"/uv "${tempdir}"/uvx && \
|
||||||
mv --force "${tempdir}"/uv "${tempdir}"/uvx "$(systemd-path user-binaries)"
|
mv --force "${tempdir}"/uv "${tempdir}"/uvx "$(systemd-path user-binaries)"
|
||||||
}
|
}
|
||||||
|
|
||||||
github_update "${package}" "${repo}" uv_resource install_uv
|
github_update "${package}" "${repo}" uv_resource install_uv
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue