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,7 +11,7 @@ dolt_resource() {
|
|||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ kingfisher_resource() {
|
|||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,9 +11,9 @@ minikube_resource() {
|
|||
}
|
||||
|
||||
install_minikube() {
|
||||
tempfile="$(mktemp)"
|
||||
cat - > "${tempfile}"
|
||||
chmod 550 "${tempfile}"
|
||||
tempfile="$(mktemp)" && \
|
||||
cat - > "${tempfile}" && \
|
||||
chmod 550 "${tempfile}" && \
|
||||
mv "${tempfile}" "$(systemd-path user-binaries)"/minikube
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,9 +11,9 @@ rust_analyzer_resource() {
|
|||
}
|
||||
|
||||
install_rust_analyzer() {
|
||||
tempfile="$(mktemp)"
|
||||
gunzip --to-stdout - > "${tempfile}"
|
||||
chmod 550 "${tempfile}"
|
||||
tempfile="$(mktemp)" && \
|
||||
gunzip --to-stdout - > "${tempfile}" && \
|
||||
chmod 550 "${tempfile}" && \
|
||||
mv "${tempfile}" "$(systemd-path user-binaries)"/rust-analyzer
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ uv_resource() {
|
|||
}
|
||||
|
||||
install_uv() {
|
||||
tempdir="$(mktemp --directory)"
|
||||
tempdir="$(mktemp --directory)" && \
|
||||
tar xz --directory="${tempdir}" --strip-components=1 && \
|
||||
chmod 550 "${tempdir}"/uv "${tempdir}"/uvx && \
|
||||
mv --force "${tempdir}"/uv "${tempdir}"/uvx "$(systemd-path user-binaries)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue