Fix small bug on env var export

This commit is contained in:
Iglesys 2022-11-21 15:21:16 +01:00 committed by GitHub
parent 9320445074
commit 01c0c842ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,8 +88,9 @@ else
fi
# Read and export values from .env file
if test -f .env; then
export $(grep -v '^#' .env | xargs)
ENV_FILE="$CURRENT_PATH/.env"
if test -f $ENV_FILE; then
export $(grep -v '^#' $ENV_FILE | xargs)
# Set default values with env vars (if any)
port=$PROXY_PORT
mode=$PROXY_MODE
@ -99,6 +100,7 @@ else
mode=socks
fi
# set default value for tor instances
tors=5