Skip to content

Commit 15711dc

Browse files
Fix download URL handling for Windows and Linux in install script
1 parent 9461fc7 commit 15711dc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

install-cli.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ fi
6262

6363
# --- Download and Extract ---
6464
# The download is a .tar.gz file which needs to be extracted
65-
URL="https://github.com/kosli-dev/cli/releases/download/${VERSION}/kosli_${VERSION_FILENAME}_${CLI_OS}_${ARCH}.tar.gz"
65+
if [ "$CLI_OS" = "windows" ]; then
66+
URL="https://github.com/kosli-dev/cli/releases/download/${VERSION}/kosli_${VERSION_FILENAME}_${CLI_OS}_${ARCH}.zip"
67+
else
68+
URL="https://github.com/kosli-dev/cli/releases/download/${VERSION}/kosli_${VERSION_FILENAME}_${CLI_OS}_${ARCH}.tar.gz"
69+
fi
6670
echo "Downloading from: $URL"
6771

6872
# Download and extract in one go

0 commit comments

Comments
 (0)