mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +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
|