Skip to content

Commit

Permalink
fix: publishing still failed for amd64
Browse files Browse the repository at this point in the history
  • Loading branch information
slisson committed Feb 10, 2025
1 parent 11866a6 commit ed0320a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/replace-jbr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@ set -e
# There is only a linux distribution of MPS for amd64.
# This script replaces the bundled JBR with the arm version.

JBR_ARCHIVE="/jbr.tar.gz"
# Get the system architecture
OS_ARCH=$(uname -m)
if [ "$OS_ARCH" = "arm64" ]; then
OS_ARCH="aarch64"
fi

function tryDownloadJbr() {
# Get the system architecture
OS_ARCH=$(uname -m)
if [ "$OS_ARCH" = "arm64" ]; then
OS_ARCH="aarch64"
fi
# Only proceed if the architecture is aarch64
if [ "$OS_ARCH" != "aarch64" ]; then
echo "Skipping download and extraction: Architecture is not aarch64."
exit 0
fi

# Only proceed if the architecture is aarch64
if [ "$OS_ARCH" != "aarch64" ]; then
echo "Skipping download and extraction: Architecture is not aarch64."
return 0
fi
JBR_ARCHIVE="/jbr.tar.gz"

function tryDownloadJbr() {
# Read the release file
RELEASE_FILE="/mps/jbr/release"
if [ ! -f "$RELEASE_FILE" ]; then
Expand Down

0 comments on commit ed0320a

Please sign in to comment.