simple-verify.sh
1 #!/bin/bash 2 3 # Exit on error 4 set -e 5 6 echo "╔════════════════════════════════════════════════════════════════╗" 7 echo "║ ║" 8 echo "║ KeepSync Binary Verification ║" 9 echo "║ ║" 10 echo "╚════════════════════════════════════════════════════════════════╝" 11 12 # Check if the binary exists 13 if [ ! -f "bin/keepsync" ]; then 14 echo "Error: Binary not found at bin/keepsync" 15 exit 1 16 fi 17 18 # Make sure the binary is executable 19 chmod +x bin/keepsync 20 21 # Check if the binary runs 22 echo "Checking if the binary runs..." 23 ./bin/keepsync --help > /dev/null 2>&1 24 if [ $? -ne 0 ]; then 25 echo "Error: Binary does not run correctly" 26 exit 1 27 fi 28 echo "✓ Binary runs correctly" 29 30 # Check if the binary has all providers 31 echo "Checking if the binary has all providers..." 32 PROVIDERS_OUTPUT=$(./bin/keepsync --list-providers 2>/dev/null) 33 echo "Found providers:" 34 echo "$PROVIDERS_OUTPUT" 35 36 echo "╔════════════════════════════════════════════════════════════════╗" 37 echo "║ ║" 38 echo "║ Binary Verification Complete ║" 39 echo "║ ║" 40 echo "╚════════════════════════════════════════════════════════════════╝" 41 42 echo "The binary has been verified to run correctly." 43 echo "Please manually check the output above to confirm that all required providers are available."