aboutsummaryrefslogtreecommitdiffstats
path: root/.env
diff options
context:
space:
mode:
Diffstat (limited to '.env')
-rw-r--r--.env6
1 files changed, 3 insertions, 3 deletions
diff --git a/.env b/.env
index 7f847e29..97f38452 100644
--- a/.env
+++ b/.env
@@ -1,5 +1,5 @@
-DIR=`dirname $0`
-if [ -z "$VIRTUAL_ENV" ] && [ -f $DIR/../venv.mitmproxy/bin/activate ]; then
+DIR="${0%/*}"
+if [ -z "$VIRTUAL_ENV" ] && [ -f "$DIR/../venv.mitmproxy/bin/activate" ]; then
echo "Activating mitmproxy virtualenv..."
- source $DIR/../venv.mitmproxy/bin/activate
+ source "$DIR/../venv.mitmproxy/bin/activate"
fi