Skip to content

Instantly share code, notes, and snippets.

@elPytel
Created September 18, 2024 18:17
Show Gist options
  • Save elPytel/869899847d53e9d03b3c28fdb336ffdc to your computer and use it in GitHub Desktop.
Save elPytel/869899847d53e9d03b3c28fdb336ffdc to your computer and use it in GitHub Desktop.
Install script for apt and pip dependencies
#!/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