-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
90bb311
commit 7faf8e5
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." |