Open wdliu356 opened 1 year ago
same error when trying to use the script on OpenVPN client configuration file downloaded from hackthebox.com :-(
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
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