Skip to content

Commit

Permalink
Fix auto_venv.sh creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Nov 22, 2023
1 parent 66f69e3 commit a9db28c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,11 @@ find_config() {
}

venv_bash_snippet() {
inform "Checking for $VENV_BASH_SNIPPET\n"
if [ ! -f $VENV_BASH_SNIPPET ]; then
inform "Creating $VENV_BASH_SNIPPET\n"
cat << EOF > $VENV_BASH_SNIPPET
# Add `source $VENV_BASH_SNIPPET` to your ~/.bashrc to activate
# Add "source $VENV_BASH_SNIPPET" to your ~/.bashrc to activate
# the Pimoroni virtual environment automagically!
VENV_DIR="$VENV_DIR"
if [ ! -f \$VENV_DIR/bin/activate ]; then
Expand Down

0 comments on commit a9db28c

Please sign in to comment.