Skip to content

Commit

Permalink
Updated installer.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
mas6y6 committed Dec 5, 2024
1 parent 97268dd commit 5e7b21b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ if [ "$RAW_ARCHITECTURE" = "x86_64" ]; then
ARCHITECTURE="x64"
elif [ "$RAW_ARCHITECTURE" = "aarch64" ]; then
ARCHITECTURE="arm64"
elif [ "$RAW_ARCHITECTURE" = "arm64" ]; then
ARCHITECTURE="arm64"
elif [ "$RAW_ARCHITECTURE" = "i386" ] || [ "$ARCHITECTURE" = "i686" ]; then
ARCHITECTURE="x32"
else
Expand Down Expand Up @@ -62,7 +64,7 @@ fi
echo "\033[1;34mDownloading CipherOS executable...\033[0m"
mkdir -p "$INSTALL_DIR"

HTTP_STATUS=$(curl -s -o "$INSTALL_DIR/$EXECUTABLE" -w "%{http_code}" "$GITHUB_REPO_URL")
HTTP_STATUS=$(curl -L -s -o "$INSTALL_DIR/$EXECUTABLE" -w "%{http_code}" "$GITHUB_REPO_URL")

if [ "$HTTP_STATUS" -ne 200 ]; then
echo "\033[1;31mFailed to download CipherOS. HTTP Status: $HTTP_STATUS. Please check the URL or try again later.\033[0m"
Expand Down

0 comments on commit 5e7b21b

Please sign in to comment.