Skip to content

Commit

Permalink
Add help message when choosing an invalid config
Browse files Browse the repository at this point in the history
  • Loading branch information
haugene committed Nov 3, 2020
1 parent f1be375 commit f27d47c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openvpn/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ if [[ -z ${CHOSEN_OPENVPN_CONFIG} ]]; then
CHOSEN_OPENVPN_CONFIG="${VPN_PROVIDER_HOME}/${OPENVPN_CONFIG}.ovpn"
else
echo "Supplied config ${OPENVPN_CONFIG}.ovpn could not be found."
echo "Your options for this provider are:"
ls "${VPN_PROVIDER_HOME}" | grep .ovpn
echo "NB: Remember to not specify .ovpn as part of the config name."
exit 1 # No longer fall back to default. The user chose a specific config - we should use it or fail.
fi
else
Expand Down

0 comments on commit f27d47c

Please sign in to comment.