Files
sunnypilot/tools/ubuntu_setup.sh
Kacper Rączy 41fd8b51e7 macOS: generate .pyenvrc during setup (#29698)
* Create .pyenvrc if it does not exist

* Replace source zshrc with pyenvrc

* Remove unnecessary variables if pyenv wasn't installed

* Add check fo PYENV_SHELL

* source instead of eval

* printf instead of echo

* leave previous pyenvrc path to source

* Add newline

* Change shebang

* Dont source the file after setup

* eval virtualenv-init too

* modify comment

* Just unset broken function on macos
old-commit-hash: 39d2517d3d
2023-08-29 16:01:04 -07:00

16 lines
385 B
Bash
Executable File

#!/usr/bin/env bash
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
# NOTE: this is used in a docker build, so do not run any scripts here.
$DIR/install_ubuntu_dependencies.sh
$DIR/install_python_dependencies.sh
echo
echo "---- OPENPILOT SETUP DONE ----"
echo "Open a new shell or configure your active shell env by running:"
echo "source ~/.bashrc"