@@ -8,7 +8,6 @@ ARM_APPLE_PREFIX="Parseable_OSS_aarch64-apple-darwin"
88INTEL_APPLE_PREFIX=" Parseable_OSS_x86_64-apple-darwin"
99ARM_LINUX_PREFIX=" Parseable_OSS_aarch64-unknown-linux-gnu"
1010INTEL_LINUX_PREFIX=" Parseable_OSS_x86_64-unknown-linux-gnu"
11- INTEL_WINDOWS_PREFIX=" Parseable_OSS_x86_64-pc-windows-msvc.exe"
1211PARSEABLE_PREFIX=${ARM_APPLE_PREFIX}
1312
1413# Get the system's CPU architecture and operating system
@@ -67,13 +66,6 @@ elif [[ "$OS" == "linux" ]]; then
6766 echo " Error: Unsupported CPU architecture for Linux (${CPU_ARCH} )."
6867 exit 1
6968 fi
70- elif [[ " $OS " == " windows" ]]; then
71- if [[ " $CPU_ARCH " == " x86_64" ]]; then
72- PARSEABLE_PREFIX=${INTEL_WINDOWS_PREFIX}
73- else
74- echo " Error: Unsupported CPU architecture for Windows (${CPU_ARCH} )."
75- exit 1
76- fi
7769else
7870 echo " Error: Unsupported operating system (${OS} )."
7971 exit 1
@@ -94,11 +86,12 @@ printf "Downloading Parseable version $release_tag, for OS: $OS, CPU architectur
9486printf " Download URL: $download_url \n\n"
9587
9688if command -v curl & > /dev/null; then
97- curl -L -o " ${BIN_NAME} " " $download_url "
89+ curl -fL -o " ${BIN_NAME} " " $download_url " || { echo " Error: download failed " ; exit 1 ; }
9890elif command -v wget & > /dev/null; then
99- wget -O " ${BIN_NAME} " " $download_url "
91+ wget -q - O " ${BIN_NAME} " " $download_url " || { echo " Error: download failed " ; exit 1 ; }
10092else
10193 echo " Error: Neither curl nor wget found. Please install either curl or wget."
94+ exit 1
10295fi
10396
10497printf " Parseable Server was successfully installed at: ${BIN_NAME} \n"
0 commit comments