Skip to content

Commit

Permalink
add executable check
Browse files Browse the repository at this point in the history
  • Loading branch information
EyalDelarea committed Jan 8, 2025
1 parent 3ac3a78 commit 753e5e2
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions build/apple_release/scripts/download-signed-mac-OS-binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 753e5e2

Please sign in to comment.