From 50c37c7a1434d2bc03994cbe7f8233acc136b046 Mon Sep 17 00:00:00 2001 From: rvcas Date: Tue, 27 Feb 2024 21:37:53 -0500 Subject: [PATCH] feat(aikup): error message when version not found closes #837 --- aikup/aikup | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aikup/aikup b/aikup/aikup index 6f5b5430..66748696 100755 --- a/aikup/aikup +++ b/aikup/aikup @@ -1,5 +1,6 @@ #!/usr/bin/env bash set -e +set -o pipefail AIKEN_DIR=${AIKEN_DIR-"$HOME/.aiken"} AIKEN_BIN_DIR="$AIKEN_DIR/bin" @@ -86,7 +87,9 @@ main() { # Download the binaries tarball and unpack it into the .aiken bin directory. 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 bin_path="$AIKEN_BIN_DIR/$bin"