feat(aikup): error message when version not found

closes #837
This commit is contained in:
rvcas 2024-02-27 21:37:53 -05:00
parent 2018a18d15
commit 50c37c7a14
No known key found for this signature in database
GPG Key ID: C09B64E263F7D68C
1 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -e set -e
set -o pipefail
AIKEN_DIR=${AIKEN_DIR-"$HOME/.aiken"} AIKEN_DIR=${AIKEN_DIR-"$HOME/.aiken"}
AIKEN_BIN_DIR="$AIKEN_DIR/bin" AIKEN_BIN_DIR="$AIKEN_DIR/bin"
@ -86,7 +87,9 @@ main() {
# Download the binaries tarball and unpack it into the .aiken bin directory. # Download the binaries tarball and unpack it into the .aiken bin directory.
say "downloading aiken" say "downloading aiken"
ensure curl -# -L "$BIN_TARBALL_URL" | tar -xzC "$AIKEN_BIN_DIR" curl -f -# -L "$BIN_TARBALL_URL" | tar -xzC "$AIKEN_BIN_DIR" || {
err "failed to download aiken: version not found or network error"
}
for bin in "${BINS[@]}"; do for bin in "${BINS[@]}"; do
bin_path="$AIKEN_BIN_DIR/$bin" bin_path="$AIKEN_BIN_DIR/$bin"