Merge pull request #1187 from colinwebber/vpnbook-fix

Removed space within parsed VPNBOOK password.
This commit is contained in:
Patrick Kishino
2020-05-14 08:07:42 +09:00
committed by GitHub

View File

@@ -76,7 +76,7 @@ then
-F 'detectOrientation=false' \
-F 'isTable=false' \
"https://api.ocr.space/parse/image" -o /tmp/vpnbook_pwd
export OPENVPN_PASSWORD=$(cat /tmp/vpnbook_pwd | awk -F',' '{ print $1 }' | awk -F':' '{print $NF}' | tr -d '"')
export OPENVPN_PASSWORD=$(cat /tmp/vpnbook_pwd | awk -F',' '{ print $1 }' | awk -F':' '{print $NF}' | tr -d '"' | awk '{print $1 $2}')
fi
if [[ -n "${OPENVPN_CONFIG-}" ]]; then