File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -105,22 +105,22 @@ function _lazy_connect() {
105
105
esac
106
106
fi
107
107
108
- [[ " $MANUAL_MODE " -eq " true" ]] && echo -n " $password " | pbcopy
108
+ [[ " $AUTOFILL " -eq " true" ]] && echo -n " $password " | pbcopy
109
109
110
110
osascript << EOF
111
- on connectVpn(vpnName, password, manual )
111
+ on connectVpn(vpnName, password, autofill )
112
112
tell application "System Events"
113
113
tell process "SystemUIServer"
114
114
set vpnMenu to (menu bar item 1 of menu bar 1 where description is "VPN")
115
115
tell vpnMenu to click
116
116
try
117
117
click menu item vpnName of menu 1 of vpnMenu
118
118
delay 1
119
- if (manual is not equal to "true")
119
+ if (autofill is equal to "true")
120
120
keystroke $password
121
121
keystroke return
122
122
end if
123
- return "true"
123
+ return
124
124
on error errorStr
125
125
if errorStr does not contain "Can’t get menu item" and errorStr does not contain vpnName then
126
126
display dialog errorStr
@@ -130,7 +130,7 @@ function _lazy_connect() {
130
130
end tell
131
131
end connectVpn
132
132
133
- connectVpn("$vpn_name ", "$password ", "$MANUAL_MODE ")
133
+ connectVpn("$vpn_name ", "$password ", "$AUTOFILL ")
134
134
EOF
135
135
}
136
136
You can’t perform that action at this time.
0 commit comments