Fix small bug on env var export
This commit is contained in:
parent
9320445074
commit
01c0c842ae
1 changed files with 4 additions and 2 deletions
|
@ -88,8 +88,9 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Read and export values from .env file
|
# Read and export values from .env file
|
||||||
if test -f .env; then
|
ENV_FILE="$CURRENT_PATH/.env"
|
||||||
export $(grep -v '^#' .env | xargs)
|
if test -f $ENV_FILE; then
|
||||||
|
export $(grep -v '^#' $ENV_FILE | xargs)
|
||||||
# Set default values with env vars (if any)
|
# Set default values with env vars (if any)
|
||||||
port=$PROXY_PORT
|
port=$PROXY_PORT
|
||||||
mode=$PROXY_MODE
|
mode=$PROXY_MODE
|
||||||
|
@ -99,6 +100,7 @@ else
|
||||||
mode=socks
|
mode=socks
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# set default value for tor instances
|
# set default value for tor instances
|
||||||
tors=5
|
tors=5
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue