Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
molecula451 committed Apr 16, 2024
1 parent 90bb311 commit 7faf8e5
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions packages/contracts/scripts/smt-checker/check-deps
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash

missing_dependencies=()

# Check if wget is installed
if ! command -v wget &>/dev/null; then
missing_dependencies+=("wget")
fi

# Check if g++ is installed
if ! command -v g++ &>/dev/null; then
missing_dependencies+=("g++")
fi

if [ ${#missing_dependencies[@]} -ne 0 ]; then
echo "The following dependencies are missing: ${missing_dependencies[*]}"
echo "Please install them to continue."
echo "On Ubuntu/Debian, use the command:"
echo "sudo apt-get install ${missing_dependencies[*]}"
echo "On Arch Linux, use the command:"
echo "sudo pacman -S ${missing_dependencies[*]}"
echo "On macOS, you can install ${missing_dependencies[*]} by installing Xcode Command Line Tools:"
echo "xcode-select --install"
exit 1
fi

echo "All required programs are installed on your system."

0 comments on commit 7faf8e5

Please sign in to comment.