Skip to content

Commit 228117b

Browse files
committed
Update messages
1 parent f8dd8fe commit 228117b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lazy-connect.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function _lazy_connect_init() {
1212
read -s secret_key
1313
echo "**********"
1414

15-
echo 'Storing secret in keychain.'
15+
echo 'Storing secret in keychain...'
1616
security add-generic-password -a lazy-connect -p "$secret_key" -s lazy-connect
1717
;;
1818
esac
@@ -44,6 +44,7 @@ function _lazy_connect_vpn_refresh() {
4444
EOF
4545
tr ',' '\n' | sed 's/^[[:space:]]//g' > $_lazy_connect_config_dir/vpns
4646

47+
echo "Storing the VPN list..."
4748
if [ -f $backup_file ]; then
4849
echo -e "\nDiff:\n$(diff -y $backup_file $_lazy_connect_config_dir/vpns)"
4950
else
@@ -60,8 +61,7 @@ USAGE:
6061
lazy-connect - Shell function to fuzzy search an IPSec VPN by name
6162
and connect to it automatically.
6263
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
6565
-u - Update lazy-connect
6666
-r - Refresh vpn list in ~/.config/lazy-connect
6767
-h - Show this help
@@ -81,7 +81,7 @@ function _lazy_connect_get_totp() {
8181
exit 1
8282
fi
8383
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."
8585
exit 1
8686
else
8787
password=$(ykman oath code $LAZY_CONNECT_TOTP_QUERY 2>/dev/null | awk '{print $2}')
@@ -97,11 +97,11 @@ function _lazy_connect() {
9797
if [ -z "$password" ]; then
9898
case $TOTP_MODE in
9999
oathtool)
100-
echo "Error: Unable to generate otp using oathtool"
100+
echo "Error: Unable to generate otp using oathtool."
101101
return 1
102102
;;
103103
yubikey)
104-
echo "Error: No YubiKey found"
104+
echo "Error: No YubiKey found."
105105
return 1
106106
;;
107107
esac

0 commit comments

Comments
 (0)