Skip to content

Instantly share code, notes, and snippets.

@risknu
Created May 17, 2024 14:42
Show Gist options
  • Save risknu/2ab51b50d53d8c93fe8292400acd3768 to your computer and use it in GitHub Desktop.
Save risknu/2ab51b50d53d8c93fe8292400acd3768 to your computer and use it in GitHub Desktop.
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