Created
September 18, 2024 18:17
-
-
Save elPytel/869899847d53e9d03b3c28fdb336ffdc to your computer and use it in GitHub Desktop.
Install script for apt and pip dependencies
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
#!/bin/bash | |
# By Pytel | |
python_dependencies="pip-dependencies.txt" | |
apt_dependencies="apt-dependencies.txt" | |
# Install apt dependencies | |
sudo apt-get update | |
if [ -f $apt_dependencies ]; then | |
xargs sudo apt-get -y install < $apt_dependencies | |
fi | |
# Install python dependencies | |
if [ -f $python_dependencies ]; then | |
pip install -r $python_dependencies | |
fi | |
echo -e "Done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment