Skip to content

Commit 6f3f991

Browse files
Move the installation script to use gzipped files (#188)
* Use gunzip in installation * Correct one detail
1 parent 6916a8b commit 6f3f991

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ fi
5151

5252

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

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

0 commit comments

Comments
 (0)