Skip to content

Commit 1d6c278

Browse files
committed
update
1 parent 578784e commit 1d6c278

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

scripts/download.sh

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ ARM_APPLE_PREFIX="Parseable_OSS_aarch64-apple-darwin"
88
INTEL_APPLE_PREFIX="Parseable_OSS_x86_64-apple-darwin"
99
ARM_LINUX_PREFIX="Parseable_OSS_aarch64-unknown-linux-gnu"
1010
INTEL_LINUX_PREFIX="Parseable_OSS_x86_64-unknown-linux-gnu"
11-
INTEL_WINDOWS_PREFIX="Parseable_OSS_x86_64-pc-windows-msvc.exe"
1211
PARSEABLE_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
7769
else
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
9486
printf "Download URL: $download_url\n\n"
9587

9688
if 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; }
9890
elif 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; }
10092
else
10193
echo "Error: Neither curl nor wget found. Please install either curl or wget."
94+
exit 1
10295
fi
10396

10497
printf "Parseable Server was successfully installed at: ${BIN_NAME}\n"

0 commit comments

Comments
 (0)