From 4ab9927e212735ce7d8b9218bb4a7107eb4e9616 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 25 May 2025 13:27:31 +1200 Subject: [PATCH] Bug fixing --- build.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index 3672bea..3f6674a 100755 --- a/build.sh +++ b/build.sh @@ -70,18 +70,18 @@ if [ ! -z "$1" ]; then BUILDSTR="$1" fi -if [ "$BUILDSTR" == "all" || "$BUILDSTR" == "arm64" ]; then +if [ "$BUILDSTR" = "all" ] || [ "$BUILDSTR" = "arm64" ]; then title "Building linux-arm64 executable" build linux-arm64 || die "Failed to build linux-arm64 executable" echo "arm64 executable: ./simple_object_storage-linux-arm64" -fi; +fi -if [ "$BUILDSTR" == "all" || "$BUILDSTR" == "amd64" ]; then +if [ "$BUILDSTR" = "all" ] || [ "$BUILDSTR" = "amd64" ]; then title "Building linux-x86_64 executable" build linux-x86_64 || die "Failed to build linux-x86_64 executable" mv ${EXE_DIR}/simple_object_storage-linux-x86_64 ${EXE_DIR}/simple_object_storage-linux-amd64 echo "amd64 executable: ./simple_object_storage-linux-amd64" -fi; +fi echo "Build completed successfully!"