Skip to content

Commit 74ff5d3

Browse files
committed
Fix pattern matching in select_archive_format
Correct the pattern matching used for detecting platform architecture. The incorrect use of `-` instead of `_` caused the script to fail in identifying platforms like macOS and Windows, leading to installation issues.
1 parent d192e75 commit 74ff5d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

install.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,17 @@ select_archive_format() {
5757
PLATFORM_ARCH=$1
5858

5959
case "$PLATFORM_ARCH" in
60-
darwin-*)
60+
darwin_*)
6161
# Check if Homebrew is installed
6262
if command -v brew >/dev/null 2>&1; then
63-
echo "Using Homebrew for installation."
63+
>&2 echo "Using Homebrew for installation."
6464
brew install "$BINARY_NAME" # Install using Homebrew
6565
exit 0 # Exit after installation
6666
else
6767
echo "zip" # We only ship .zip archives for macOS
6868
fi
6969
;;
70-
windows-*)
70+
windows_*)
7171
echo "zip" # We only ship .zip archives for Windows
7272
;;
7373
*)

0 commit comments

Comments
 (0)