mirror of
https://github.com/mitmproxy/mitmproxy.git
synced 2024-11-25 06:09:50 +00:00
b2f87b9424
* properly quote DIR variable (it might contain spaces) * use builtin string magic instead of `dirname`
6 lines
191 B
Bash
6 lines
191 B
Bash
DIR="${0%/*}"
|
|
if [ -z "$VIRTUAL_ENV" ] && [ -f "$DIR/../venv.mitmproxy/bin/activate" ]; then
|
|
echo "Activating mitmproxy virtualenv..."
|
|
source "$DIR/../venv.mitmproxy/bin/activate"
|
|
fi
|