Skip to content

Commit

Permalink
Merge pull request haugene#1079 from jsloan117/nordvpn-syntax-fix
Browse files Browse the repository at this point in the history
Nordvpn syntax fix
  • Loading branch information
haugene authored Mar 19, 2020
2 parents c87fc1c + 9cbdac2 commit a67b009
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openvpn/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ then
export NORDVPN_CATEGORY=P2P
fi

if [[ ! -z $OPENVPN_CONFIG ]]
if [[ -n $OPENVPN_CONFIG ]]
then
tmp_Protocol="${OPENVPN_CONFIG##*.}"
export NORDVPN_PROTOCOL=${tmp_Protocol^^}
echo "Setting NORDVPN_PROTOCOL to: ${NORDVPN_PROTOCOL}"
${VPN_PROVIDER_CONFIGS}/updateConfigs.sh --openvpn-config
elif [[ ! -z $NORDVPN_COUNTRY ]]
elif [[ -n $NORDVPN_COUNTRY ]]
then
export OPENVPN_CONFIG=$(${VPN_PROVIDER_CONFIGS}/updateConfigs.sh)
else
export OPENVPN_CONFIG=$(${VPN_PROVIDER_CONFIGS}/updateConfigs.sh --get-recommended})
export OPENVPN_CONFIG=$(${VPN_PROVIDER_CONFIGS}/updateConfigs.sh --get-recommended)
fi
elif [[ "${OPENVPN_PROVIDER^^}" = "FREEVPN" ]]
then
Expand Down

0 comments on commit a67b009

Please sign in to comment.