@@ -12,7 +12,7 @@ function _lazy_connect_init() {
12
12
read -s secret_key
13
13
echo " **********"
14
14
15
- echo ' Storing secret in keychain.'
15
+ echo ' Storing secret in keychain... '
16
16
security add-generic-password -a lazy-connect -p " $secret_key " -s lazy-connect
17
17
;;
18
18
esac
@@ -44,6 +44,7 @@ function _lazy_connect_vpn_refresh() {
44
44
EOF
45
45
tr ' ,' ' \n' | sed ' s/^[[:space:]]//g' > $_lazy_connect_config_dir /vpns
46
46
47
+ echo " Storing the VPN list..."
47
48
if [ -f $backup_file ]; then
48
49
echo -e " \nDiff:\n$( diff -y $backup_file $_lazy_connect_config_dir /vpns) "
49
50
else
60
61
lazy-connect - Shell function to fuzzy search an IPSec VPN by name
61
62
and connect to it automatically.
62
63
63
- -i - Initialize lazy-connect.
64
- Stores the secret and VPN list to ~/.config/lazy-connect/
64
+ -i - Initialize lazy-connect. Stores the TOTP secret and VPN list
65
65
-u - Update lazy-connect
66
66
-r - Refresh vpn list in ~/.config/lazy-connect
67
67
-h - Show this help
@@ -81,7 +81,7 @@ function _lazy_connect_get_totp() {
81
81
exit 1
82
82
fi
83
83
if [ -z " $LAZY_CONNECT_TOTP_QUERY " ]; then
84
- echo " Error: LAZY_CONNECT_TOTP_QUERY not set"
84
+ echo " Error: LAZY_CONNECT_TOTP_QUERY not set. "
85
85
exit 1
86
86
else
87
87
password=$( ykman oath code $LAZY_CONNECT_TOTP_QUERY 2> /dev/null | awk ' {print $2}' )
@@ -97,11 +97,11 @@ function _lazy_connect() {
97
97
if [ -z " $password " ]; then
98
98
case $TOTP_MODE in
99
99
oathtool)
100
- echo " Error: Unable to generate otp using oathtool"
100
+ echo " Error: Unable to generate otp using oathtool. "
101
101
return 1
102
102
;;
103
103
yubikey)
104
- echo " Error: No YubiKey found"
104
+ echo " Error: No YubiKey found. "
105
105
return 1
106
106
;;
107
107
esac
0 commit comments