Created
May 17, 2024 14:42
-
-
Save risknu/2ab51b50d53d8c93fe8292400acd3768 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
if ! hash python3; then | |
echo "[!] ERR: python is not installed" | |
exit 1 | |
fi | |
ver=$(python3 -V 2>&1 | sed 's/.* \([0-9]\).\([0-9]\).*/\1\2/') | |
if [ "$ver" -lt "31" ]; then | |
echo "[!] ERR: This script requires python 3.10 or greater" | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment