Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working for ovpn file downloaded from OpenVPN Cloud #5

Open
wdliu356 opened this issue Dec 2, 2022 · 2 comments
Open

Not working for ovpn file downloaded from OpenVPN Cloud #5

wdliu356 opened this issue Dec 2, 2022 · 2 comments

Comments

@wdliu356
Copy link

wdliu356 commented Dec 2, 2022

I tried to split the .ovpn file downloaded from OpenVPN Cloud but it is giving me error messages listed as follows
tr: missing operand after ‘[:upper:] [:lower:]’
Two strings must be given when translating.
Try 'tr --help' for more information.
tr: missing operand after ‘[:upper:] [:lower:]’
Two strings must be given when translating.
Try 'tr --help' for more information.
tr: missing operand after ‘[:upper:] [:lower:]’
Two strings must be given when translating.
Try 'tr --help' for more information.
tr: missing operand after ‘[:upper:] [:lower:]’
Two strings must be given when translating.
Try 'tr --help' for more information.
Invalid open vpn file extension

@marcobelmonte
Copy link

same error when trying to use the script on OpenVPN client configuration file downloaded from hackthebox.com :-(

@Mikael-Aberg
Copy link

I got the same error on a file from hotspot shield and was able to solve it by replacing line 172 with this and it seems to be working so far at least

if [ "$(echo "$EXTENSION" | tr '[:upper:]' '[:lower:]')" = "$(echo "conf" | tr '[:upper:]' '[:lower:]')" ] || [ "$(echo "$EXTENSION" | tr '[:upper:]' '[:lower:]')" = "$(echo "ovpn" | tr '[:upper:]' '[:lower:]')" ]; then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants