home-backup/venv.sh

14 lines
232 B
Bash
Raw Permalink Normal View History

2020-04-15 22:00:37 +00:00
#! /usr/bin/bash
cd "$(dirname "$0")"
python3 -m venv venv &&
source venv/bin/activate &&
pip install --upgrade pip &&
pip install . &&
if [ "$#" -gt 1 ]
then
exec -- "$@"
else
echo Using shell "$SHELL"
exec "$SHELL"
fi