Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions install.sh
Original file line numberDiff line numberDiff line change
Expand Up@@ -51,9 +51,10 @@ fi


# Download the binary
DOWNLOAD_URL="https://github.com/$REPO_BASE/releases/download/$TAG_NAME/$BINARY_NAME$ARCH_NAME"
DOWNLOAD_URL="https://github.com/$REPO_BASE/releases/download/$TAG_NAME/$BINARY_NAME$ARCH_NAME.gz"
echo "Downloading $BINARY_NAME from $DOWNLOAD_URL"
curl -L "$DOWNLOAD_URL" -o "$INSTALL_DIR/jelly-cli"
curl -L "$DOWNLOAD_URL" -o "$INSTALL_DIR/jelly-cli.gz"
gzip -d "$INSTALL_DIR/jelly-cli.gz"
CONTENT=$(wc -c "$INSTALL_DIR/jelly-cli" | awk '{print $1}')
if [ $CONTENT -lt 500 ]; then
echo "Error: Failed to download the binary from $DOWNLOAD_URL"
Expand DownExpand Up@@ -83,5 +84,4 @@ else
exit 1
fi

jelly-cli completions install > /dev/null
eval "$(jelly-cli completions install --env)"
jelly-cli completions install