From 753e5e2c42deefc3d83dba143ae6ed088e27a3f5 Mon Sep 17 00:00:00 2001 From: delarea Date: Wed, 8 Jan 2025 16:23:32 +0200 Subject: [PATCH] add executable check --- .../scripts/download-signed-mac-OS-binaries.sh | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/build/apple_release/scripts/download-signed-mac-OS-binaries.sh b/build/apple_release/scripts/download-signed-mac-OS-binaries.sh index aedbb5504..da0fff8d4 100755 --- a/build/apple_release/scripts/download-signed-mac-OS-binaries.sh +++ b/build/apple_release/scripts/download-signed-mac-OS-binaries.sh @@ -59,24 +59,19 @@ downloadSignedMacOSBinaries() { -H "X-GitHub-Api-Version: 2022-11-28" \ "$artifactUrl" -o artifact.zip - echo "extracting..." - ls -la echo "installing zip..." apt-get update apt-get install unzip # Extract the artifact and clean up unzip artifact.zip - - ls -la - rm -rf artifact.zip - # Make the binary executable - chmod +x "$cliExecutableName" - - # Validate the binary by checking its version - ./"$cliExecutableName" --version + # Check if the executable exists + if [ ! -f "$cliExecutableName" ]; then + echo "Error: Executable $cliExecutableName not found." + exit 1 + fi } # Start the process