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
#!/bin/bash | |
# Check for required arguments | |
if [[ $# -ne 1 ]]; then | |
echo "Usage: $0 <input_file>" | |
exit 1 | |
fi | |
echo "shares" > mycommands |
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
#!/bin/bash | |
# Check python version >= 3.10 | |
PYTHON_VERSION=$(python3 -c 'import sys; print(sys.version_info[:2])') | |
REQUIRED_VERSION=(3 10) | |
if (( PYTHON_VERSION < REQUIRED_VERSION )); then | |
echo "Python 3.10+ required. Please install a newer Python." | |
exit 1 | |
fi |